Find your IP Address on Windows

Your IPv4 Address

ISP:
City:
Country:

Your IPv6 Address

ISP:
City:
Country:

Find your public IP / external address on Windows

You can check your public IP directly from PowerShell or Command Prompt, with nothing to install.

Using PowerShell

Get your public IP / external address (IPv4 or IPv6 depending on your setup) using PowerShell

Invoke-RestMethod ip.getpublicip.com

irm is PowerShell's built-in short name for Invoke-RestMethod, so this works too:

irm ip.getpublicip.com

Get your external IPv4 address using PowerShell

Invoke-RestMethod ipv4.getpublicip.com/ip

Get your external IPv6 address using PowerShell

Invoke-RestMethod ipv6.getpublicip.com/ip

You can also use the curl binary that ships with Windows 10 and later. Type curl.exe, not curl: in Windows PowerShell, curl is an alias for Invoke-WebRequest.

curl.exe https://api.getpublicip.com/ip

Using Command Prompt

Open Command Prompt by pressing Win + R, typing cmd, and pressing Enter.

Get your public IP address (IPv4 or IPv6 depending on your connection) using Command Prompt

curl https://api.getpublicip.com/ip

Get your external IPv4 address using Command Prompt

curl https://ipv4.getpublicip.com/ip

Get your external IPv6 address using Command Prompt

curl https://ipv6.getpublicip.com/ip

The output of these commands will look like:

IP Address: 203.0.113.42
ISP: Example ISP
City: Dallas
Country: United States

Find your local IP address on Windows

The quickest way to find your local IP address on Windows is using ipconfig:

ipconfig

You will see an output similar to:

Windows IP Configuration

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : home.local
   Link-local IPv6 Address . . . . . : fe80::767e:5882:2cdd:686e%12
   IPv4 Address. . . . . . . . . . . : 192.168.1.100
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : home.local
   Link-local IPv6 Address . . . . . : fe80::a1b2:c3d4:e5f6:7890%15
   IPv4 Address. . . . . . . . . . . : 192.168.1.105
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

Each section represents a network adapter. The Ethernet adapter section is your wired connection and Wireless LAN adapter Wi-Fi is your wireless connection.

The IPv4 Address line shows your local IP address. In this case the wired connection has 192.168.1.100 and the wireless connection has 192.168.1.105.

The Link-local IPv6 Address line shows the IPv6 address of the adapter. All IPv6 addresses that start with fe80 are reserved link-local addresses.

The Default Gateway is usually your router's IP address.

For more detailed information including MAC addresses, use:

ipconfig /all

Using PowerShell

PowerShell provides a more structured way to view your IP addresses using Get-NetIPAddress:

Get-NetIPAddress | Format-Table InterfaceAlias, IPAddress, PrefixLength

Which will output:

InterfaceAlias       IPAddress                       PrefixLength
--------------       ---------                       ------------
Ethernet             192.168.1.100                             24
Ethernet             fe80::767e:5882:2cdd:686e%12              64
Wi-Fi                192.168.1.105                             24
Wi-Fi                fe80::a1b2:c3d4:e5f6:7890%15             64
Loopback Pseudo...   127.0.0.1                                  8
Loopback Pseudo...   ::1                                      128

To filter for only IPv4 addresses:

Get-NetIPAddress -AddressFamily IPv4 | Format-Table InterfaceAlias, IPAddress

Frequently Asked Questions

How do I find my public IP address on Windows using Command Prompt?

Open Command Prompt and run curl https://api.getpublicip.com/ip. Windows 10 and later ship with curl.exe built in, so no install is required. The command returns your public IP address (IPv4 or IPv6, depending on your connection), with your ISP and location on the lines below. To force IPv4 or IPv6, use curl https://ipv4.getpublicip.com/ip or curl https://ipv6.getpublicip.com/ip (IPv6 only works if your ISP and network support it).

How do I find my public IP using PowerShell?

Run Invoke-RestMethod ip.getpublicip.com in PowerShell to get your public IP address, or its built-in short form irm ip.getpublicip.com. Invoke-RestMethod is built in on all supported Windows versions and does not require downloading anything. You can also use curl.exe, the real curl binary shipped with Windows; plain curl in Windows PowerShell is an alias for Invoke-WebRequest.

What's the difference between my public IP and my local IP on Windows?

Your public IP is the address the rest of the internet sees for your connection. It is assigned by your ISP and is what you need for self-hosting. Your local IP (typically 192.168.x.x or 10.x.x.x) is the address your router assigned to your PC inside your home network. To find the local IP run ipconfig in Command Prompt and look at the IPv4 Address line for your active adapter.

Why does my Windows PC have a different IP than my router?

Because of NAT (Network Address Translation). Your router has one public IP assigned by the ISP, and it shares that across every device on your network using private IPs. Every Windows PC, phone, or smart TV in your home gets its own local IP (from the 192.168.x.x range typically), and when any of them connect to the internet, the router translates the traffic to its single public address.

How do I find my public IP without using the command line?

Visit https://getpublicip.com in any web browser on your Windows PC; the homepage displays your current public IPv4 and IPv6 addresses automatically. This works identically on any OS (Windows 10, Windows 11, Windows Server) and does not require administrator privileges.

Why does my public IP change on Windows?

Windows has nothing to do with it: your public IP is assigned by your ISP, not your operating system. Most residential ISPs use dynamic IP allocation, meaning your address may change when your router reboots, when your DHCP lease expires, or when the ISP reorganises its address pools. If you need an IP that does not change, you need a static public IP, either from your ISP (often on business plans only) or from a service like GetPublicIP.

Explore Guides & Categories