Skip to content

Instantly share code, notes, and snippets.

@ianhomer
Last active February 28, 2024 13:39
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ianhomer/b50bd81316f1e008608b to your computer and use it in GitHub Desktop.
Save ianhomer/b50bd81316f1e008608b to your computer and use it in GitHub Desktop.
Force CURL to use ipv4
# curl not smart enough for ipv6, so force ipv4
# on my mac I started to get localhost connect failure
#
# curl: (7) Failed to connect to localhost port 9031: Connection refused
echo '--ipv4' >> ~/.curlrc
@ianhomer
Copy link
Author

@ValentinMATHIEU
Copy link

thx !

@acooler15
Copy link

thk !

@nestor-bolivar
Copy link

On MACOS,
curl -4 ifconfig.io or curl -6 ifconfig.io for ipv6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment