什么是检查机器外部IP的好服务?

bul*_*ley 6 api ip networking

我正在使用需要机器外部IP的API.我已经明白,如果不依赖外部服务器,我就无法做到这一点.

我过去使用过whatismyip.com:

wget -q -O - http://whatismyip.com/automation/n09230945.asp

有哪些其他服务可用于检查机器的外部IP?由于我担心单点故障,我想提供一些可以将故障转移的选项.

mit*_*tch 9

curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'
Run Code Online (Sandbox Code Playgroud)

现在,我自己并没有写这些,只是为你做一些研究.

http://www.geekology.co.za/blog/2009/04/checking-your-internal-and-external-ip-addresses-on-a-unix-machine/

要么

wget -O -q icanhazip.com
Run Code Online (Sandbox Code Playgroud)

  • 考虑提一下icanhazip有ipv4.和ipv6.子域. (3认同)

小智 5

http://api.externalip.net/ip对我来说很好,正常运行时间很快.不需要reg exp