Beginner

How to Find Your IP Address Using CMD and PowerShell

Find your local and public IP address on Windows using ipconfig and PowerShell in under a minute.

Admin 10 October 2026 4 min read 4 views
How to Find Your IP Address Using CMD and PowerShell

Finding your IP address

Your IP address identifies your device on a network. Here is how to find it on Windows using both Command Prompt and PowerShell.

Using Command Prompt (CMD)

Open the Start menu, type cmd, and press Enter. Then run:

ipconfig

Look for the IPv4 Address under your active adapter:

Wireless LAN adapter Wi-Fi:
   IPv4 Address. . . . . . . . . . . : 192.168.1.58
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

For full details including MAC address and DNS servers:

ipconfig /all

Using PowerShell

Open PowerShell and run:

Get-NetIPAddress -AddressFamily IPv4 | Select-Object IPAddress, InterfaceAlias

Pro Tip: To find your public IP address (the one the internet sees), run:

(Invoke-WebRequest -Uri "https://api.ipify.org").Content

That's it — you now know how to find both your local and public IP address on Windows.

#ip#ipconfig#windows#cmd
Back to all guides