2
Thanks

A few words of thanks would be greatly appreciated.

Find a Computer in a LAN Using an IP Address

A LAN, or a Local Area Network, provides networking capabilities to a group of computers, allowing users to easily share files, games, printers, data, and other applications. This article will explain how to find the hostname of a computer, connected in a LAN, using an IP address. Depending on the type of IP address - public or private - there are two different procedures. If you want to know how they work, keep reading.




Public IP Address

In order to find the hostname of a computer with a public IP address, you have to pass the address to the Domain Name System (DNS) server. Here are the steps to follow:

  • Click on the Window Start button.
  • Click on “All Programs”.
  • Click on “Accessories”.
  • Right-click on "Command Prompt".
  • Choose "Run as Administrator."
  • Type “nbtstat -a <ip_address>”. Note that <ip_address> is the IP address of the computer.

Private IP Address

Finding the hostname of a computer with a private IP address and no local DNS server means you need to query the host itself by using a Windows utility. Here are the steps to follow:

  • Click on the Window Start button.
  • Click on “All Programs”.
  • Click on “Accessories”.
  • A black box opens.
  • Type "nslookup -a <ip_address>". Note that <ip_address> is the IP address of the computer.



Note that it is not necessary to know an IP address in order to find other systems if you have a WiFi LAN connection.

We hope that you find these solutions useful and that your question is answered !

Image: ©Markus Spiske: www.unsplash.com

2
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
Related
This document, titled « Find a Computer in a LAN Using an IP Address », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!