I've encountered a Ubuntu 16.04 today, where localhost resolved to ::1 instead of 127.0.0.1.
localhost
::1
127.0.0.1
This will not usually make a difference, but could be relevant for firewall policies.