How to Find IP Address Using Command Prompt

By Robert Karr

The "Ping" command, accessed through a command prompt, which is usually used to test whether Internet connections are working properly, also can be used to identify the IP address associated with a domain name. Using this method may be a quicker way to accomplish this task than using one of the domain locator services such as WHOIS with your browser, although the latter will provide more information about the registered owner of the IP address.

Step 1

Click on "Start" on the bottom left corner of your screen and then "Run." Type "cmd" in the Run box and click on "OK." A black screen will appear with a blinking cursor.

Step 2

Type "ping" after the cursor, followed by the name of the IP address site you are trying to locate. For example, to locate the IP address of, type "ping" (omit the quotation marks) and hit enter.

Step 3

Make a note for future reference of the results. They will appear like this: "Pinging [] with 32 bytes of data:" followed by the results of the ping contact repeated several times.

Step 4

Close the command window by clicking on the small "x" in the upper right-hand corner.

Step 5

Verify the IP address by going to the site (see Resources) and selecting "Whois By IP address." Insert the IP address you found and click "Search."

Tips & Warnings

  • If the response in Step 3 times out, one of three things could be wrong: 1) You mistyped the domain name; 2) your Internet connection is not working properly (probably the DNS server); 3) the remote site is getting too many connection attempts, in which case just try later.Not every domain is set up to be recognized without the use of the "www" prefix. If the IP address is not found through Step 3, retry adding www. to the front of the domain name.
  • Depending on your settings, you may need to run the cmd program as an Administrator. You may also need to turn off your firewall if it blocks the ping command (nothing happens after you type in the command and hit enter).