我如何通过.net在路由器下获取我的IP [英] how i can get my ip under router by .net

查看:84
本文介绍了我如何通过.net在路由器下获取我的IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
如果我在show ip网站上的互联网IP是196.221.57.1​​01
我认为路由器的IP地址是
下的IP地址到我的PC 所以
如何通过.net在路由器下获取我的IP
访问
感谢您的帮助

hi everyone
if my ip on internet is 196.221.57.101 in site of show ip
i think this ip of router so there ip to my pc under this
so
how i can get my ip under router by .net
to access
thanks for any help

推荐答案

您是否考虑过以下问题:
Have you considered this: http://stackoverflow.com/questions/66363/get-external-ip-address-over-remoting-in-c[^]?


196.xxx.xxx.xxx IP地址不太可能是Internet-它们很有可能是本地LAN地址,因为该范围通常是为内部网络保留的,我知道没有ISP是使用它们.
当您获得IP地址时,您就获得了本地IP-Internet IP地址是ADSL路由器被外界所知的地址,您的内部地址被用作子网,以便在数据包被重新分配时对其进行重新寻址.已收到.

AFAIK是查明您正在使用的Internet IP地址的唯一方法,是与Web服务联系并告诉您.在MSDN上有一篇很好的文章对此有所帮助,该文章应该有所帮助:
http://msdn.microsoft.com/zh-cn/magazine/cc163692.aspx [ ^ ]
196.xxx.xxx.xxx IP addresses are unlikely to be Internet - they are much, much more likely to be local LAN addresses, since that range is normally reserved for internal networks and I know of no ISP which is using them.
When you get your IP address, you get you local IP - the Internet IP address is the address by which your ADSL router is known to the outside world, which you internal address being used as a subnet to re-address the packets when they are received.

AFAIK, the only way to find out your the Internet IP address you are using, is to contact a web service and get it to tell you. There is a good article on MSDN about this, which should help: http://msdn.microsoft.com/en-us/magazine/cc163692.aspx[^]


这篇关于我如何通过.net在路由器下获取我的IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆