码迷,mamicode.com
首页 > 其他好文 > 详细

如何获得外部看到的外网IP

时间:2015-01-14 15:33:24      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:

curl ifconfig.me

原理是这样的:


ifconfig.me是一个网站,当你curl它的时候,它将它看到的IP地址再重新发给你。ifconfig.me可能会判断agent是否是curl的,如果是才返回IP,如果不是返回其它的。


原文:http://blog.csdn.net/hongchangfirst/article/details/32716573

作者:hongchangfirst

hongchangfirst的主页:http://blog.csdn.net/hongchangfirst


如何获得外部看到的外网IP

标签:

原文地址:http://blog.csdn.net/hongchangfirst/article/details/32716573

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!