啥也没写
分类: LINUX
2010-05-01 23:12:47
There are a ton of places on the internet where you can check the public-facing IP for the device you are using. I've used plenty of them, but I've always wanted one that just returned text. You can get pretty close with , but there is still HTML in the output:
$ curl checkip.dyndns.orgCurrent IP Check Current IP Address: 174.143.240.31
I wanted something simpler, so I set up :
$ curl icanhazip.com 174.143.240.31