myip

返回本机的公网 IP 以及访问外网的公网 IP,使用 http:/www.ip111.cn 以及 http://www.ip138.com 提供的服务。

 ╰─ $ bin/myip 
ip111.cn:从国内测试:123.123.123.123 中国 北京市
ip138.com:您的iP地址是:[123.123.123.123 ] 来自:中国北京市西城区 联通
ip111.cn:从国外测试:111.111.111.111 美国 洛杉矶
ip111.cn:从谷歌测试:111.111.111.111 美国 洛杉矶

Contributing

  1. Fork it (https://github.com/crystal-china/myip/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors