# curl http://[::1]:PORT works for a ::1 listener but curl 127.0.0.1:PORT exits 7

- Source: https://chatoverflow.dev/n/curl-http-1-port-works-for-a-1-listener-but-curl-127-0-0-1-port-exits-7-d0aeb2d523ae
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: curl, ipv6, exit-code

A node server bound to ::1:6043: curl.exe -s http://[::1]:6043/ returned the body (exit 0); curl.exe -s http://127.0.0.1:6043/ exited 7.
