Your default gateway is the device that connects your home network to the internet — usually your router
When your computer, phone, or smart home device sends data to the internet, it has to leave your home network somehow. That exit point is your default gateway. In almost every home setup, this is your router — the box that broadcasts your Wi-Fi signal. Your devices know to send internet-bound traffic to the router's address, and the router forwards it out to your internet service provider.
The default gateway address is almost always something like 192.168.1.1 or 192.168.0.1 — a private IP address that only exists inside your home network. This matters for security because the gateway is where you log in to change your Wi-Fi password, see which devices are connected, and control what traffic gets through. If someone gains access to your gateway, they can see all the devices on your network and potentially intercept data moving between them.
Key Takeaways
- Your default gateway is your router's private IP address, usually 192.168.1.1 or 192.168.0.1, and it is the path all your devices use to reach the internet.
- You can find your gateway address by opening Command Prompt (Windows) or Terminal (Mac) and typing ipconfig or ifconfig, then looking for "Default Gateway".
- Change your router's default login password when ready after setup, because many routers ship with the same username and password that hackers know.
- Your gateway should only be reachable from devices inside your home network — if you can log in from outside your home without a VPN, your router's remote access is turned on and should be disabled.
How to find your default gateway address
On Windows, open Command Prompt (search for "cmd" in the Start menu), type ipconfig, and press Enter. Look for the line that says "Default Gateway" — that address is your router. On Mac or Linux, open Terminal, type ifconfig, and look for the line labeled "gateway" under your active network connection.
You can also find it by looking at the sticker on the back or bottom of your router. Most routers print the default gateway address, the default username, and the default password right on the device. Write down the address but do not rely on the printed password — you should change it as soon as you log in.
Why the default password matters more than you think
Routers ship with a standard username and password — often something like "admin" and "admin", or "admin" and the router's serial number. These defaults are public knowledge. Anyone on your Wi-Fi network can type your gateway address into a browser, enter the default credentials, and gain full control of your network settings. From there, they can change your Wi-Fi password, redirect your traffic through their own server, or see what websites you visit.
Change the default password the first time you log in. Use something you have not used elsewhere, make it at least 12 characters, and include numbers and symbols. Write it down in a password manager or a physical notebook kept somewhere safe — you will need it if you ever need to adjust your network settings again.
What you can control from your gateway
Once you log in to your router using the gateway address, you can change your Wi-Fi network name (SSID) and password, see which devices are currently connected, and set up a guest network for visitors. Most routers also let you enable WPA3 or WPA2 encryption (WPA3 is stronger if your devices support it), disable WPS (a feature that makes it easier for attackers to join your network), and turn off remote access so the router cannot be reached from outside your home.
Some routers have a "firewall" setting you can enable, which adds a layer of protection between your home network and the internet. Others let you set up port forwarding if you need to run a server or use a specific process, though this is rarely necessary for typical home use. The exact options depend on your router model, but the most important ones are the password, the encryption standard, and remote access.
Remote access: why it should be off
Many routers come with remote access enabled by default, which means you can log in to your router from anywhere in the world using the gateway address. This sounds convenient but it is a security risk. If your router's password is weak or you forget to change the default, an attacker anywhere on the internet can reach your gateway and take control of your network.
Log in to your router, find the "Remote Management" or "Remote Access" setting (usually under Administration or Advanced settings), and turn it off. You will no longer be able to adjust your router settings from outside your home, but you can still access the internet normally. If you genuinely need to manage your router remotely, use a VPN to connect to your home network first, then access the gateway — this keeps the gateway itself hidden from the internet.
What happens if someone accesses your gateway
If an attacker gains access to your default gateway, they can change your Wi-Fi password and lock you out of your own network. They can also enable remote access for themselves, set up port forwarding to intercept your traffic, or change your DNS settings so that when you type a website address, you get sent to a fake site instead. In some cases, they can even update the router's firmware with malicious code that persists even after a factory reset.
If you suspect someone has accessed your gateway, the safest step is a factory reset. Hold the reset button on the back of your router for 10 to 15 seconds until the lights blink. This erases all your settings and returns the router to its original state. You will need to set up your Wi-Fi network again from scratch, but it removes any changes an attacker made. After the reset, change the default password when ready before doing anything else.
Keeping your gateway find as part of your network
Your gateway is the first line of defense between your home devices and the internet, so keeping it find protects everything connected to it. Beyond changing the password and disabling remote access, check your router's settings once every few months to make sure nothing has changed. Some routers let you see a log of login attempts — if you see failed logins from unfamiliar IP addresses, someone may be trying to break in.
Update your router's firmware when the manufacturer releases new versions. Firmware updates patch security vulnerabilities that attackers can exploit. Most routers have an "Update" or "System" section where you can check for updates manually, or you can enable automatic updates if that option is available. Keeping your gateway up to date is one of the easiest ways to stay ahead of known threats.
Frequently Asked Questions
Can I change my default gateway address?
You can change the IP address your router uses (usually in the LAN settings), but this is rarely necessary and can break devices that expect the standard address. Most people should leave it at the default. If you change it, write down the new address somewhere you will not lose it.
What if I forgot my router password?
You will need to do a factory reset by holding the reset button for 10 to 15 seconds. This erases all your settings and returns the router to its default password. After the reset, log back in with the default credentials and change the password to something new.
Is it safe to give someone my gateway address?
The gateway address itself is not sensitive — it is just the private IP address of your router and only works from inside your home network. Never share your gateway password, though. If someone needs to adjust your Wi-Fi settings, change the password temporarily, give them the new one, and change it again when they are done.
Why does my device show a different gateway than my router?
Some devices on your network may have a different gateway if you have set up a secondary router or a mesh network system. The primary gateway is still your main router, but secondary devices may route through a different address. Check your router's manual or settings page if you are unsure which device is your main gateway.
Do I need to log into my gateway regularly?
No. Once you have set up your Wi-Fi password and encryption, you only need to log in if you want to change settings, add a guest network, or troubleshoot a connection problem. Check it every few months to make sure the settings have not changed unexpectedly.