How to Find a Computer Name on a Network Using Ping

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.

The ping command is a simple but powerful tool in managing a computer network. To find a computer's assigned name on a network using the ping command, you will need to know the computer's Internet protocol (IP) address. Each computer on a network has a different IP address. The ping command allows you to contact the IP address and get it to return the computer's workgroup name to you.

Advertisement

Things You'll Need

Video of the Day

  • Computer
  • Network

Video of the Day

Finding the Computer Name

Step 1

Open a command prompt window. This is done by clicking the Start menu. Next, find the Accessories sub-menu. The command prompt application should now be on screen.

Advertisement

Step 2

If you have the computer's IP address at your disposal, you can skip ahead to Step 3. If you have nothing to go on, you can get a list of all active IP addresses on your network by using the netstat command. In your opened command prompt window, type netstat -n. A list of all IP's currently active on the network is returned.

Advertisement

Advertisement

Step 3

At this point, you have an IP address, either one you knew all along or one from your IP list you created in the first step. Now, type the next command: ping -a . Make sure to leave a space after the "-a" part. In the ping report that is returned by the other computer, you will find the computer's name.

Advertisement

Advertisement

Report an Issue

screenshot of the current page

Screenshot loading...