开发者

What are good services for checking the external IP of a machine? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can b开发者_StackOverflow中文版e improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I'm working with an API that requires the machine's external IP. I have come understand that I can't do this without relying on an external server.

I've used whatismyip.com in the past:

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

What are some other services for checking the external IP of a machine? Since I'm concerned about a single point of failure, I'd like to have a few options to which I can fail over.


curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'

Now, I didn't write that myself, just doing some research for you.

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

Or

wget -O -q icanhazip.com


http://api.externalip.net/ip works fine for me, great uptime and fast. no reg exp needed


  • http://www.showmemyip.com
  • http://www.whatismy.com
  • http://showip.codebrainz.ca/ (details)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜