4 ms·
Somewhat related, IPv4 addresses can also be represented in a shorter classfull form NET.HOST, like 10.1 == 10.0.0.1 192.168.1 == 192.168.0.1 While it has
by andoma 7y ago
Somewhat related, IPv4 addresses can also be represented in a shorter classfull form NET.HOST, like
10.1 == 10.0.0.1
192.168.1 == 192.168.0.1
While it has practically no use in today's CIDR [1] internet, it's still a useful shortcut for home-networks, etc (I have my home network configured as 10.0/24)
$ ping 10.1
PING 10.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.181 ms
I've also recently stumbled on some software that no longer parses this address form. Can't remember where though.
[1] https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
- slovenlyrobot 7y agoIn a similar vein, '0' is INADDR_ANY, which in connect() usually means the local machine (except Windows?). So for webapp development, http://0:3333 http://0:3333 is about as convenient a URL you can get, except it doesn't work in Chrome
- Quekid5 7y agoDoesn't the "doesn't work in [some browser]" make it... not convenient? Is there a problem with localhost:3333 (or whatever)?
- naniwaduni 7y agoIt's eight characters longer?
- fanf2 7y ago1980s style IPv4 address syntax has been deprecated for 20 years: https://tools.ietf.org/html/rfc2553#page-31 https://tools.ietf.org/html/rfc2553#page-31 https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/inet_pton.html https://pubs.opengroup.org/onlinepubs/9699919799.2018edition... Anything that continues to support the ancient syntax is in serious need of fixing with extreme prejudice.