Last active
June 17, 2024 03:56
-
-
Save ianhomer/b50bd81316f1e008608b to your computer and use it in GitHub Desktop.
Force CURL to use ipv4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
On MACOS,
curl -4 ifconfig.io
or curl -6 ifconfig.io
for ipv6
Thanks !!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thk !