Skip to content

Instantly share code, notes, and snippets.

@ianhomer
Last active May 8, 2024 21:04
Show Gist options
  • Star 9 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
@acooler15
Copy link

thk !

@nestor-bolivar
Copy link

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

@Martin-Luther
Copy link

Thanks !!

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