キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Get Network Computer name from IP address

On a windows machine I want to be able to get the computer name if I know the IP. I have a VI that will return the MAC Address which is useful since my wireless access point does not have a static IP, I can search for the MAC Address to find it and then access it, but would like to add the feature of returning the computer name.. How can I do this?
 
Thanks
Jeff
Jeff D.

Certified Architect LabVIEW Champion DQMH Framework

0 件の賞賛
メッセージ1/6
4,623件の閲覧回数
Look on the Communication>TCP palette. There are the functions String to IP and IP to String. The IP to String has a Boolean input that will allow you to select to return the IP as either dot notation or name. I'm not sure how knowing the MAC address will help with getting the IP though.
メッセージ2/6
4,614件の閲覧回数
Attached screenshot shows how to find the name of the network adapters on your computer... the STR IP function has Multiple Outputs enabled to produce an array. 

If you wanted to find the computer name of another computer you could feed the IP address string "x.x.x.x" to the STR IP function.
0 件の賞賛
メッセージ3/6
4,605件の閲覧回数

Thanks

I tried that and it works.. Part of the problem is where I am it is Novell IPX so if a name is assigned to a PC I will not see it, I just get ip205.int.xx.com (xx being the company) but if I do it to my Win Xp machine I get the computer name. Since the Computers are not using TCP/IP I guess I am out of luck.

Even still I will build an application and try it at home on my TCP network.

Jeff D.

Certified Architect LabVIEW Champion DQMH Framework

0 件の賞賛
メッセージ4/6
4,596件の閲覧回数
Try looking at  the following: -
1) Registry key
  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName

They key is of type REG_SZ, that is a string.

This will work no matter what the network subsytems installed.
There is another key in the same node but the key given is the current computer name.

You will find lots of examples of registry handling on this form and bundled with Labview

0 件の賞賛
メッセージ5/6
4,574件の閲覧回数
Here is an example in 7.0 format.
メッセージ6/6
4,568件の閲覧回数