[UWP] [C#]如何列出LAN中的所有计算机名称和IP地址。 [英] [UWP][C#] How to get list all machine name and ip addresses in LAN.

查看:85
本文介绍了[UWP] [C#]如何列出LAN中的所有计算机名称和IP地址。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我需要获取所有机器的IP地址,该地址在UWP中连接并在LAN中激活。

I need to get all machine's IPAddress which connected and active in LAN in UWP.

sandeep chauhan

sandeep chauhan

推荐答案

你可以转到广播地址。但udp不可靠,经常被防火墙和路由器丢弃。 

you can udp to a broadcast address. But udp is not reliable and is often dropped by firewalls and routers. 

如果你想发现某种类型的设备,请查看https://docs.microsoft.com/en- us / windows / uwp / launch-resume / discover-remote-devices。 

if you want to discover certain type of devices, check https://docs.microsoft.com/en-us/windows/uwp/launch-resume/discover-remote-devices. 


这篇关于[UWP] [C#]如何列出LAN中的所有计算机名称和IP地址。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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