How to Find a Gateway IP Address
In this article
Your gateway IP address is the IP address of your router on your local network. It's the address your device uses to send traffic outside your local network, and you often need it to access your router's settings page. Here's the shortest answer: on Windows, open Command Prompt and type ipconfig, then look for "Default Gateway." On macOS, go to System Settings > Network, click your connection, then look for "Router." On Android, go to Wi-Fi settings, tap your network, and look for "Gateway." On iPhone, open Settings > Wi-Fi, tap the "i" next to your network, and look for "Router." Below are the full step-by-step instructions for each platform.
What You'll Need
- Access to the device whose gateway IP you want to find (Windows PC, Mac, iPhone, Android phone, or tablet).
- For Windows: permission to open Command Prompt or PowerShell (standard user is fine).
- For macOS: access to System Settings (or System Preferences on older versions).
- For iPhone/iPad: the Wi-Fi network you're connected to.
- For Android: the Wi-Fi network you're connected to.
Step-by-Step
On Windows (10 and 11)
- Press Windows key + R to open the Run dialog.
- Type
cmdand press Enter. This opens Command Prompt. - In the Command Prompt window, type
ipconfigand press Enter. - Look for the section that says Default Gateway. It's usually near the bottom of the active network adapter's info (e.g., "Ethernet adapter" or "Wireless LAN adapter Wi-Fi"). The number next to it (like 192.168.1.1) is your gateway IP.
Alternatively, you can open Settings > Network & Internet > Wi-Fi (or Ethernet), click your connection, and look for the "Default gateway" field. Labels can differ slightly by Windows version.
On macOS
- Click the Apple menu in the top-left corner and select System Settings (on macOS Ventura and later) or System Preferences (on older versions).
- Click Network.
- Select your active connection on the left (Wi-Fi or Ethernet).
- Click Details (next to the connection name) for Wi-Fi, or just look at the main window for Ethernet.
- Click TCP/IP tab (if you clicked Details). The gateway IP is listed as Router.
On iPhone or iPad
- Open the Settings app.
- Tap Wi-Fi.
- Make sure you're connected to your Wi-Fi network (it will have a checkmark).
- Tap the blue "i" icon next to the network name.
- Look for the Router field. That's your gateway IP.
On Android (stock Android and most Samsung devices)
- Open the Settings app.
- Tap Network & internet (or Connections on Samsung).
- Tap Wi-Fi.
- Tap the gear icon (or the network name) next to the Wi-Fi network you're connected to.
- Look for Gateway (or Default gateway). On some phones, you may need to tap Advanced or IP settings to see it.
On Linux (using terminal)
- Open a terminal window.
- Type
ip routeand press Enter. - Look for the line that starts with
default. The IP address after "via" is your gateway.
Common Mistakes
- Looking at the wrong adapter: On Windows, if you have multiple adapters (e.g., Wi-Fi and Ethernet), you might pick the wrong one. Make sure you look at the one that's actually connected (it will have an IP address and a Default Gateway).
- Confusing gateway with IP address: Your device's IP address (like 192.168.1.5) is not the gateway. The gateway is usually the first IP in the subnet (like 192.168.1.1).
- Using a VPN: If you're connected to a VPN, the gateway shown might be the VPN's virtual gateway, not your router's. Disconnect the VPN temporarily to see your real gateway.
- Not being connected to the network: If you're not connected to any network, there won't be a gateway. Make sure you're connected to Wi-Fi or Ethernet.
Tips
- Most home routers use 192.168.1.1, 192.168.0.1, or 10.0.0.1 as the default gateway, but it can be customized. Always check your actual settings.
- If you need to access your router's admin page, type the gateway IP into a web browser's address bar (not the search bar).
- On Windows, you can also use
ipconfig /allfor more detailed info, but the Default Gateway line is the same. - On macOS, if you don't see the Router field, try clicking the "Advanced" button and then the TCP/IP tab.
- If you're on a corporate or managed network, the gateway might be a different IP range, and you may not have permission to change router settings.
Troubleshooting
If you can't find the gateway IP using the steps above, try these in order:
- Restart your device and router: This resolves most temporary network glitches. Unplug the router for 30 seconds, plug it back in, wait for it to fully boot, then try again.
- Check if you're actually connected: Open a web browser and try to load a website. If you can't, you're not connected to the internet, so there may be no gateway.
- Try a different command: On Windows, type
tracert 8.8.8.8and press Enter. The first hop (the first IP address listed) is usually your gateway. On macOS/Linux, usetraceroute 8.8.8.8(you may need to install it first). - Check network settings on your phone: On iPhone, if you don't see a Router field, tap "Renew Lease" and then check again. On Android, try toggling Wi-Fi off and on.
- Look at the router's label: Many routers have the default gateway IP printed on a sticker on the bottom or back. If the router is using its default settings, that should work.
- If all else fails: Reset the router to factory defaults (usually by holding a small reset button for 10 seconds). This will erase all custom settings, so only do this if you're comfortable reconfiguring your network.
Frequently Asked Questions
What is a gateway IP address?
It's the IP address of the router that connects your local network to the internet. All devices on your network send traffic to this IP when they need to go outside the local network.
Is the gateway IP the same as my IP address?
No. Your device has its own IP address (like 192.168.1.5), and the gateway is a different IP (like 192.168.1.1). The gateway is the router's address on your local network.
Why do I need to know my gateway IP?
Most commonly, you need it to log into your router's admin page to change Wi-Fi passwords, set up port forwarding, or adjust security settings. It's also useful for network troubleshooting.
Can I find my gateway IP from my phone?
Yes. On iPhone, go to Settings > Wi-Fi and tap the "i" next to your network. On Android, go to Settings > Wi-Fi, tap your network, and look for Gateway. The exact steps vary by phone model, but it's usually under the network details.
What if my gateway IP doesn't work when I type it into a browser?
Make sure you're typing it into the address bar, not a search box. Also, some routers use HTTPS instead of HTTP, so try https://192.168.1.1. If that fails, your router might be configured to block admin access from wireless devices; try connecting via an Ethernet cable.
Can I change my gateway IP?
Yes, you can change the router's local IP address in its settings, but it's not recommended unless you know what you're doing. Changing it can break your network if not done correctly.