Re:Show HN: Echo your external IP address with 'curl echoip....
by Amfy on Tuesday March 01, 2022 @08:06PM
(#30522353)
Thanks, but there's so many such services out there already.
[ Parent
| on HN ]
Re:Show HN: Echo your external IP address with 'curl echoip....
by codezero on Tuesday March 01, 2022 @08:23PM
(#30522480)
Which one do you use?
Re:Show HN: Echo your external IP address with 'curl echoip....
by simondanerd on Tuesday March 01, 2022 @09:47PM
(#30523045)
Valid question. I knew that someone had to have done it - a quick search shows ifconfig.me as being such a service, but wanted a simpler one that anyone can hack on.
echoip.xyz is written in pure PHP and can be self-hosted without any dependencies other than PHP, and is very transparent in what it does.
ipconfig.me also outputs "Moved Permanently. Redirecting to https://ifconfig.me/%" as of right now with the "curl ipconfig.me" command.
Re:Show HN: Echo your external IP address with 'curl echoip....
by ysh7 on Tuesday March 01, 2022 @10:12PM
(#30523201)
Not OP but i use ipecho.net
alias extip='curl -s http://ipecho.net/plain && echo || echo "Huh! No Internet?"'