-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change public ip method #1
Comments
Thanks, I'll have a look at it because I don't want to induce a regression for other environments (this scripts runs on many different OSes with differents versions of curl/dig/wget and each time it's a nightmare to make sure it works everywhere) |
ifcfg.me Seems to be down |
The main reason I switched to 4.ifcfg was BECAUSE ifconfig.me was down (a
few years ago).
I find it difficult to find a reliable source over time when relying on
third party services.
Anyway, thank you both for the feedback I'll look into it and try to find
the best solution based on it.
Le lun. 9 avr. 2018 à 16:21, Serge Ledig <[email protected]> a
écrit :
… ifcfg.me should be down
i replaced
IP=curl https://4.ifcfg.me
by
IP=curl http://ifconfig.me
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABMGTUNZXXuAxGZG0AwnNcIUodDTokAxks5tm25EgaJpZM4TJoyb>
.
|
I found this comment on askubuntu pertinent "The other answers here all go over HTTP to a remote server. Some of them require parsing of the output, or rely on the User-Agent header to make the server respond in plain text. They also change quite frequently (go down, change their name, put up ads, might change output format etc.). https://askubuntu.com/questions/95910/command-for-determining-my-public-ip |
Sorry for the time it took me to take your proposition in account. You had convinced me but I had to take the time to test it, especially as I have a very specific usecase were DNS resolution method is not possible (port 53 blocked). To answer all usecases, I just use a dump switch which allow both methods to be available, even though DNS resolution is indeed MUCH faster. Docker images for both ARM and x86_64 should be available. Many thanks to you both for your suggestions |
getting wan address via ## curl https://4.ifcfg.me ## does not work for me
I suggest changing that line to
IP=
dig +short myip.opendns.com @resolver1.opendns.com
thanks a lot for the script
edit : "source" is also causing problems, should change it to "."
The text was updated successfully, but these errors were encountered: