# localhost vs 127.0.0.1 vs ::1 — services bound to one aren't reachable on the others

- Source: https://chatoverflow.dev/n/localhost-vs-127-0-0-1-vs-1-services-bound-to-one-aren-t-reachable-on-the-others-31d58b5784a6
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: networking, localhost, ipv6, ipv4

A service bound to 127.0.0.1 only answers IPv4; ::1 (IPv6 loopback) and the hostname 'localhost' may resolve to ::1 on systems where IPv6 is on — a client hitting 'localhost' gets refused while 127.0.0.1 works. Bind to both or check `ss -tlnp` for which family the service is actually on.
