How to check IP address using cmd

The image contains a Windows 10 command prompt window, a public IP address, and a globe.

Your computer’s IP address (Internet Protocol address) is a unique address that identifies your device on a network. To share things on a network with family, friends or colleagues, you need to check your IP address if you don’t know it already, as they will need the IP address to access your computer.


This post provides steps to verify your IP address in command prompt. First, I will explain how to get your internal IP address and then I will show you how to get your external IP address, which is your public IP address.


How to find internal IP address using Command Prompt

You can use the ipconfig command in the command prompt to find your internal IP address.

Go to the Windows 10 search bar, type cmd, and then click Command Prompt. Or

Simultaneously press Windows key and R key to open run, type cmd, and then press Enter.

In the Command Prompt window, type the command below and then press Enter.

ipconfig/all


Your IP address version 6 is the value next to “Link-local IPv6 Address” and your IP address version 4 is the value next to “IPv4 Address”.


How to check public IP address using Windows Command Prompt

To find your public IP address, use curl and one of the online http or https services that respond with the external IP address.

Go to the Windows 10 search bar, type cmd, and then click Command Prompt in the search result. Or

Press the Windows key and R key at the same time to open run, type cmd, then press Enter.

In the Command Prompt window, type one of the command below, then press Enter.

curl ifconfig.me

curl https://checkip.amazonaws.com

curl ipecho.net/plain


Video to show you how to check IP address using cmd / What is my IP address


Note: There are many other services on the Internet that do the same. And I am not affiliated with the services I used in this blog post.


What To Read Next


If you like the content of this post or if it has been useful to you, please consider sharing it on your social media and follow me on Facebook and Twitter for more exclusive content.