Your gateway is the device that connects your computer to the rest of the network and the internet
The gateway is the router or modem that sits between your device and everything outside your home or office network. When your computer sends data to a website, a work server, or another network, it goes through the gateway first. Finding your gateway's address — called the default gateway — tells you which device is handling that traffic and lets you troubleshoot connection problems or change network settings.
The default gateway address is usually something like 192.168.1.1 or 192.168.0.1, depending on your router's manufacturer. You do not need special software or permissions to find it. The steps differ slightly between Windows, Mac, and Linux, but the information is always stored in your network settings and takes less than a minute to locate.
Key Takeaways
- Your default gateway address is visible in your network settings on Windows (Command Prompt), Mac (System Preferences), or Linux (terminal), and is usually 192.168.1.1 or 192.168.0.1.
- On Windows, open Command Prompt and type ipconfig to see your gateway listed as "Default Gateway" in the output.
- On Mac, go to System Preferences > Network, select your connection, and click Advanced to find the router address.
- Knowing your gateway address helps you log into your router to change WiFi passwords, check connected devices, or troubleshoot internet problems.
- Your gateway address is different from your device's IP address — the gateway is the router, while your IP address is your computer's unique identifier on the network.
Finding your gateway on Windows
Open the Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window will open. Type ipconfig and press Enter. The output will show several lines of information about your network connection.
Look for the line that says "Default Gateway" — this is your gateway address. It will be a series of four numbers separated by periods, like 192.168.1.1. If you have multiple network connections (WiFi and Ethernet, for example), you will see a separate Default Gateway for each one. Write down the address for the connection you are currently using.
If the Default Gateway line is blank or shows all zeros, your computer is not connected to a network or the connection is broken. Restart your router and run the command again.
Finding your gateway on Mac
Click the Apple menu in the top-left corner and select System Preferences (or System Settings on newer versions). Click Network. On the left side, select the connection you are using — either WiFi or Ethernet — and make sure it shows "Connected" in green.
Click the Advanced button in the bottom-right corner. A new window will open with several tabs. Click the TCP/IP tab. The "Router" field shows your default gateway address. This is the address you need.
If the Router field is empty, your Mac is not connected to a network or the connection has not been assigned a gateway. Try disconnecting and reconnecting to your WiFi network, then check again.
Finding your gateway on Linux
Open a terminal window. Type ip route and press Enter. The output will show your routing table. Look for the line that starts with "default via" — the IP address that follows is your default gateway.
If that command does not work, try route -n instead. Look for the line where the Destination is 0.0.0.0 and the Gateway column shows an IP address. That address is your gateway.
Some Linux systems may also show gateway information in /etc/resolv.conf, but the route commands above are more reliable.
What to do once you have your gateway address
The most common reason to find your gateway is to log into your router and change settings. Open a web browser and type your gateway address into the address bar — for example, 192.168.1.1 — and press Enter. You will be asked for a username and password. The default is often "admin" and "admin" or "admin" and "password", but this varies by manufacturer. Check the sticker on the back of your router or your router's manual.
Once logged in, you can change your WiFi password, see which devices are connected to your network, restart the router, or update its firmware. You can also check if your router is having problems by looking at the status lights and comparing them to the manual.
If you cannot log in with the default credentials, you may have changed the password in the past. If you have forgotten it, you can reset the router to factory settings by holding down the reset button (usually a small hole on the back) for 10 to 15 seconds. This will erase all your custom settings, so use this only as a last resort.
Troubleshooting when you cannot find your gateway
If the commands above show no gateway or a blank field, your device is not connected to a network. Check that your WiFi is turned on or that your Ethernet cable is plugged in. Restart your router by unplugging it for 30 seconds, then plugging it back in. Wait two minutes for it to fully start up, then run the command again.
If you see a gateway address but cannot reach it in your browser, your router may be offline or the address may be wrong. Try pinging the gateway to see if it responds. On Windows or Mac, open Command Prompt or Terminal and type ping 192.168.1.1 (replace with your actual gateway address) and press Enter. If you see replies, the router is online. If you see "Request timed out" repeatedly, the router is not responding and may need to be restarted.
If your gateway address is something unusual — not in the 192.168.x.x or 10.x.x.x range — you may be on a corporate or public network. In that case, contact your network administrator before trying to log into the gateway, as unauthorized access attempts may be logged.
The difference between your gateway and your device IP address
Your device IP address is the unique number assigned to your computer on the network. Your default gateway is the router's address. They are different things. When you run ipconfig on Windows, you will see both: "IPv4 Address" is your device, and "Default Gateway" is the router.
Think of it this way: your device IP address is like your home address, and the gateway is like the post office that handles all your mail. Your computer uses the gateway to send data outside the network, just as you use the post office to send letters outside your neighborhood.
You need the gateway address to log into your router and manage your network. You need your device IP address if someone on your network wants to connect directly to your computer, or if you are setting up port forwarding or other advanced network features.
Frequently Asked Questions
Is my gateway address the same as my router's IP address?
Yes. The gateway and the router are the same device. "Default gateway" is just the technical term for the router's address on your network. When you find your default gateway, you have found your router's address.
Can I change my gateway address?
You can change the IP address of your router itself by logging in and editing the LAN settings, but this is rarely necessary and can break your network if done incorrectly. Most people should leave the default gateway address as it is. If you are having network problems, restarting the router is a safer first step.
Why is my gateway address different from my friend's?
Different router manufacturers use different default addresses. Some use 192.168.1.1, others use 192.168.0.1, and some use 10.0.0.1. The address also depends on how your router was set up. As long as your gateway address is in the private range (192.168.x.x, 10.x.x.x, or 172.16.x.x), it is normal.
What if I see multiple default gateways?
If you have both WiFi and Ethernet connected at the same time, you may see two different gateways or the same gateway listed twice. Use the gateway for the connection you are actually using. If you are on WiFi, use the WiFi gateway. If you are plugged in with Ethernet, use the Ethernet gateway.
Do I need my gateway address to use the internet?
No. Your computer automatically uses the gateway to send traffic outside your network. You only need to know the gateway address if you want to log into your router to change settings or troubleshoot problems. Normal internet use does not require you to know or enter your gateway address.