如何检测(路由器/网关)的净变化公网IP地址? [英] How to detect public IP address (of router/gateway) change in .Net?

查看:170
本文介绍了如何检测(路由器/网关)的净变化公网IP地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 NetworkChange.NetworkAddressChanged 的事件,但仅适用于本地网络接口。

I am aware of the NetworkChange.NetworkAddressChanged event, but that is only for the local network interfaces.

什么是检测网关的公网IP​​地址已更改的最佳方法是什么? presumably一个人通过查询做外部可靠的地址,这样的google.com ...?

What is the best way to detect the public IP address of the gateway has changed? Presumably one has to do it by polling an external reliable address, such a google.com...?

推荐答案

这里有一个由Akamai:的http:// whatismyip。 akamai.com/

Here's one by Akamai: http://whatismyip.akamai.com/

这篇关于如何检测(路由器/网关)的净变化公网IP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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