Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

URLs use : to separate the IP and port. There needs to be some way to disambiguate that from the colons in the address.


But if a URL has more than one colon, can't you assume is an IPv6 address?


You can't tell if there's a port or not, e.g. http://2001:db8::1:8080/. Is that 2001:db8::1 or 2001:db8::1:8080?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: