What a gateway IP address is and why you need it
Your gateway IP address is the address of the device that connects your computer to the rest of the internet — usually your router. When your computer needs to send data outside your home or office network, it sends that data to the gateway first. The gateway then forwards it onward. If you need to change your WiFi password, set up port forwarding, or troubleshoot a connection problem, you will need this address.
The gateway address is almost always a number like 192.168.1.1 or 192.168.0.1. It looks like an IP address because it is one — it is just the IP address of your router on your local network. Every device on your network knows where to find the gateway because your router tells them when they first connect.
Key Takeaways
- Your gateway IP address is your router's address on your local network, and you need it to log into your router's settings.
- On Windows, you can find it in one command by opening Command Prompt and typing ipconfig, then looking for "Default Gateway".
- On Mac or Linux, open Terminal and type route -n get default or ip route to see the gateway address.
- On iPhone or Android, go to WiFi settings, tap your network name, and look for "Router" or "Gateway" in the network details.
- If you cannot find it this way, check the sticker on the back or bottom of your router — the address is usually printed there.
Finding the gateway address on Windows
The fastest way on Windows is to use Command Prompt. Right-click the Start button, select "Command Prompt" or "Windows PowerShell", and type the word ipconfig exactly as written. Press Enter.
A list of information will appear. Look for the section labeled with your network name or "Ethernet adapter" if you are using a wired connection. Find the line that says "Default Gateway" — the number next to it is your gateway IP address. Write it down or take a screenshot. You can now close Command Prompt.
If you see multiple "Default Gateway" entries, you are connected to multiple networks. The one you need is the one under the network you are currently using. If you are on WiFi, look under the WiFi adapter section. If you are plugged in with an ethernet cable, look under the Ethernet section.
Finding the gateway address on Mac
Open Terminal — you can find it by pressing Command and Space together, typing "Terminal", and pressing Enter. Type this command exactly: route -n get default and press Enter.
Look for the line that says "gateway:" — the IP address next to it is your gateway. This is usually something like 192.168.1.1. Close Terminal when you have written it down.
If that command does not work, try netstat -nr | grep default instead. The gateway address will be in the first column of the result, on the line that starts with "default".
Finding the gateway address on Linux
Open a terminal window and type ip route and press Enter. Look at the first line of the output — it will say something like "default via 192.168.1.1 dev eth0". The number after "via" is your gateway address.
If that does not work, try route -n instead. Look for the line where the "Destination" column says "0.0.0.0" — the number in the "Gateway" column on that line is your gateway IP address.
Finding the gateway address on your phone
On iPhone: Go to Settings, tap WiFi, and tap the information icon (the small circle with an "i") next to the network you are connected to. Scroll down and look for "Router" — the IP address shown there is your gateway.
On Android: Go to Settings, tap WiFi, and hold down the name of the network you are connected to until a menu appears. Tap "Manage network settings" or "View details" (the exact wording varies by phone). Look for "Gateway" in the list — that is your gateway IP address.
If you do not see a "Router" or "Gateway" field, your phone may not display this information. In that case, use the Windows, Mac, or Linux method from another device on the same network.
Checking the physical router if commands do not work
If none of the above methods work, look at the router itself. Most routers have a sticker on the back or bottom that lists the default gateway address, usually labeled as "Gateway", "Router Address", or "Default Gateway". The address is typically printed in small text along with the router's model number and default WiFi password.
If you cannot find a sticker, try the most common default addresses: 192.168.1.1, 192.168.0.1, or 10.0.0.1. Type one of these into your web browser's address bar and see if your router's login page appears. If it does, that is your gateway address.
Write down whichever address you find. You will need it if you ever need to log into your router to change settings, troubleshoot connection problems, or set up advanced features like port forwarding.
What to do once you have the gateway address
Once you have the gateway IP address, you can type it into any web browser on your network to reach your router's settings page. You will usually be asked for a username and password — these are often "admin" and "admin" or "admin" and the password on your router's sticker, but this varies by manufacturer.
From the router's settings page, you can change your WiFi password, restart the router, check which devices are connected, set up port forwarding, or troubleshoot connection issues. If you are not sure what a setting does, do not change it — most routers work fine with their default settings.
If you forget the gateway address again in the future, you now know how to find it. The process takes less than a minute once you know which command or menu to use.
Frequently Asked Questions
Is the gateway address the same as my public IP address?
No. Your gateway address (like 192.168.1.1) is only used on your local network. Your public IP address is what the internet sees when you visit a website, and it is assigned by your internet service provider. To find your public IP, search "what is my IP" in any search engine.
Can I change my gateway IP address?
You can change it in your router's settings, but there is almost never a reason to do so. Changing it can break your network. Leave it at the default unless a technician specifically tells you to change it.
What if I see multiple gateway addresses on my computer?
You may be connected to multiple networks at once — for example, WiFi and ethernet, or a VPN and your regular connection. The gateway you need is the one under the network you are currently using. If you are on WiFi, use the gateway listed under the WiFi adapter.
Why does my gateway address start with 10 instead of 192.168?
Different routers use different default address ranges. Addresses starting with 10, 172, or 192.168 are all normal for local networks. Your router's manufacturer chose which one to use, and it works the same way regardless of which number it starts with.
Do I need the gateway address to use the internet normally?
No. Your computer finds the gateway automatically when you connect to the network. You only need to know the gateway address if you want to log into your router's settings page or troubleshoot a network problem.