[DNS]如何获取计算机的所有IP地址. [英] [DNS]How to get all Ip Address of computer.

查看:157
本文介绍了[DNS]如何获取计算机的所有IP地址.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在编码一个Dns程序,所以我有一个问题,即如何获取计算机的所有Ip地址.例如,Ip Lan,IP Wan,Ip无线,Ip本地,Ip VmWare..v..vv..我需要参考示例.谢谢帮助.

Hey all, I''m coding a Dns program so I have a question that how to get all Ip Address of computer. Such as, Ip Lan, IP Wan, Ip wireless, Ip local, Ip VmWare..v..vv.. I doing in Windows form c#. I need example to reference.Thank for help.

推荐答案

看看这个: ^ ]-它的功能超出了您的需要,但是如果您查看GetIPAddress和GetMacAddress,它们将此PC的有效地址列表限制为一个-您只需要使用限制较少的过滤器即可.
Have a look at this: Retrieving IP and MAC addresses for a LAN[^] - it does more than you need, but if you look at GetIPAddress and GetMacAddress they restrict the list of valid addresses for this PC to a single - you just need to use a less restrictive filter.


这篇关于[DNS]如何获取计算机的所有IP地址.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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