Skip to content

Instantly share code, notes, and snippets.

@ianhomer
Last active June 17, 2024 03:56
Show Gist options
  • 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

@Martin-Luther
Copy link

Thanks !!

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