获取所有计算机的主机名,但我当前在本地连接中登录的计算机除外 [英] get hostname of all computers except for the one i am current logged onto in a local area connection

查看:71
本文介绍了获取所有计算机的主机名,但我当前在本地连接中登录的计算机除外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能吗?

推荐答案

如何找到网络上计算机本地的计算机名称?
how to find name of computer which is local to computer on network?


here's代码。

here's the code.


Private String Hostname(string Ip)
{
  IPHostEntry he = Dns.GetHostByAddress(Ip);//Ip is Ipaddress of computer whose name is to find
  string host = he.HostName;
}


这篇关于获取所有计算机的主机名,但我当前在本地连接中登录的计算机除外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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