How to Find Your IP Address and Router's Gateway IP on Windows (ipconfig)
You need your computer’s IP address or your router’s address (the “default gateway”) — to log in to the router, set up port forwarding, or troubleshoot a connection.
What these are: Your IPv4 address is your PC’s address on the local network (often 192.168.x.x). The Default Gateway is your router’s address — the device that hands your traffic out to the internet. They’re different numbers on the same network.
Step 1: Read both with ipconfig (fastest)
- Press the Windows key, type
cmd, and open Command Prompt. - Type this and press Enter:
ipconfig
Run without any options, ipconfig shows the IPv4 Address, Subnet Mask, and Default Gateway for every adapter. Look under your active connection (Wi-Fi or Ethernet):
- IPv4 Address — your computer (e.g.
192.168.0.24) - Default Gateway — your router (e.g.
192.168.0.1)
For the full picture (MAC address, DHCP server, DNS servers), use:
ipconfig /all
Step 2: Or find your IP in Settings
If you’d rather not use Command Prompt:
- Settings → Network & internet.
- For Wi-Fi, select Wi-Fi and then the network you’re connected to. For a wired connection, select Ethernet.
- Your address is listed next to IPv4 address. (The gateway is shown here on some builds; if not, use
ipconfigfor it.)
Step 3: Use the gateway to open your router
Type your Default Gateway number into a browser’s address bar (for example http://192.168.0.1) to reach your router’s login page.
FAQ
My IPv4 starts with 169.254 — is that right? No. That’s an APIPA self-assigned address, meaning your PC didn’t get one from the router. Try ipconfig /release then ipconfig /renew.
Is this the same as my “public” IP? No. ipconfig shows your private/local address. Your public IP (what websites see) is assigned by your ISP.
Sources: Microsoft Learn — ipconfig command reference · Microsoft Support — Essential network settings and tasks in Windows