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
Windows 10 and later ship with curl.exe built in, so you can check your public IP directly from PowerShell or Command Prompt.
Using PowerShell
Get your public IP / external address (IPv4 or IPv6 depending on your setup) using PowerShell
curl.exe https://api.getpublicip.com/ip
Get your external IPv4 address using PowerShell
curl.exe https://ipv4.getpublicip.com/ip
Get your external IPv6 address using PowerShell
curl.exe https://ipv6.getpublicip.com/ip
Note: In PowerShell, curl is an alias for Invoke-WebRequest. Use curl.exe to call the actual curl binary instead.
You can also use Invoke-WebRequest directly:
(Invoke-WebRequest -UseBasicParsing -URI https://api.getpublicip.com/ip).Content
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: 172.21.0.1
ISP: Unknown
City: Unknown
Country: Unknown
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
