this post was submitted on 12 Sep 2025
5 points (100.0% liked)

IPv6

389 readers
1 users here now

IPv6 Discussions

founded 2 years ago
MODERATORS
 

Source: A manga reader app (Mihon) that sources content (via user-added apps) from various sites (here: WeebCentral.com)

you are viewing a single comment's thread
view the rest of the comments
[–] chrysn@chaos.social 4 points 3 months ago* (last edited 3 months ago) (1 children)

The square bracket is the standard, eg. as the IP-literal from RFC3986 <https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2>.

Any case where the three colons occur happens because someone just takes the IP address, prints a colon after it and the port, rather than just using existing libraries that do this right.

[–] dysprosium@lemmy.dbzer0.com 1 points 3 months ago (1 children)

Sure but is it actually ambiguous is what I wonder

[–] Scoopta@programming.dev 1 points 3 months ago (1 children)

It is ambiguous. See this which could be either an address or address + port. 2001:db8:1::2:443

That is a valid address...expanded it would be 2001:db8:1:0:0:0:2:443 ...but oh no, the intent was for it to be 2001:db8:1:0:0:0:0:2 with port 443...but you'd never know

[–] dysprosium@lemmy.dbzer0.com 1 points 3 months ago* (last edited 3 months ago)

Yes good example. So it's down to a game of "do I know all my ports." 443, 22, 80, 5900, 8080, etc