获取无线网络的主机IP [英] Get Host-IPs of wireless network

查看:120
本文介绍了获取无线网络的主机IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
从移动设备获取Lan中的所有IP主机

Possible Duplicate:
Get all IP-Hosts in Lan from mobile device

如何以编程方式获取无线网络中的所有主机?

How can I get programmaticaly all the hosts in a wireless network?

我知道我正在工作的WLAN,并且已连接到该WLAN.现在,我要显示主机列表(或至少是它们的IP地址).

I know the wlan I'm working in and I am connected to it. Now I want to show a list of the hosts (or at least their IP-Addresses).

如何做到这一点?如果我在具有紧凑型框架的Windows Mobile上工作并且想要做到这一点,有什么特别的要点?

How can I accomplish this, and are there special points if I work on windows mobile with compact framework and want to do that?

推荐答案

有很多方法.例如:

  • ARP:

http://msdn.microsoft.com/zh-cn/library/aa366358%28VS.85%29.aspx

  • WMI:

http://weblogs.sqlteam.com/mladenp/archive/2010/11/04/find-only-physical-network-adapters-with-wmi-win32_networkadapter-class.aspx

  • ICMP:

http://social. msdn.microsoft.com/Forums/zh-CN/netfxnetcom/thread/8a528983-915b-4d94-836e-804b03e6261f

这篇关于获取无线网络的主机IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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