Check my IP

Home / Learn

What Is My Default Gateway Address? How to Find It

Published by Ishant Singh · Updated October 29, 2026 · 7 min read

Your default gateway is the device that forwards traffic from your network to everywhere else. On a home network it is almost always your router. When your computer wants to reach a server it cannot see locally, it hands the packet to the gateway, and the gateway sends it on.

In brief: your default gateway address is your router's private address on your own network, for example 192.168.1.1. Windows lists it as Default Gateway, Macs and iPhones call it Router, and Android calls it Gateway. It is not your public IP address, and it is not your provider's gateway, which sits one step further out.

Why is it called a default gateway?

Your device keeps a small routing table. Addresses on your own network it delivers directly. For anything else there is one catch-all entry, the default route, pointing at the gateway. Without it, your device can reach your printer but not the internet. The host requirements in RFC 1122 describe this choice of a first-hop router for any destination that is not on the local network.

Your device usually learns the gateway automatically. When it joins the network, the router's DHCP server hands out an address, a subnet mask and a Router option that names the gateway (RFC 2132, option 3).

Common default gateway addresses

There is no single standard gateway address. The router maker or your provider picks it, and it is always a private address from the ranges set aside in RFC 1918: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255 and 192.168.0.0 to 192.168.255.255. These are defaults their makers publish:

EquipmentPublished default addressAlso reachable as
TP-Link routers192.168.0.1 (some models 192.168.1.1)tplinkwifi.net
Netgear routers192.168.1.1routerlogin.net
Linksys routers192.168.1.1myrouter.local
Xfinity gateways10.0.0.1Xfinity Admin Tool at that address
Netgear cable modems192.168.100.1Modem status page only

If you changed the router's network range yourself, or your provider's engineer did, none of these will apply. Look the address up on a device instead.

How to find your default gateway address

  • Windows: run ipconfig in Command Prompt and read the Default Gateway line under your active adapter. route print shows the full routing table, where the gateway sits on the line whose network destination is 0.0.0.0. In PowerShell, Get-NetRoute -DestinationPrefix 0.0.0.0/0 shows it as the NextHop.
  • macOS: System Settings, then Network, then Details, then TCP/IP, and read the Router field. In Terminal, route -n get default prints it on the gateway line.
  • Linux: run ip route show default. The address after via is the gateway.
  • iPhone: Settings, then Wi-Fi, tap the (i) next to your network, and read Router.
  • Android: Settings, then Wi-Fi, tap your network and read Gateway. Some phones hide it under an Advanced or View more section.

Our step-by-step guide to each menu is how to find your router's IP address, since on a home network the two are the same number. For your device's own address, see how to find your IP address on any device.

What these commands showed on a real network

We ran the macOS commands on 29 October 2026 on a Mac with a wired connection to an office network. route -n get default returned the gateway 172.20.64.1 on interface en6. ipconfig getoption en6 router, which reads the Router option from the DHCP lease, returned the same address, and ipconfig getoption en6 subnet_mask returned 255.255.252.0. Three pings to the gateway came back with an average of 2.3 ms and no loss.

Can you work out the gateway from an IP address?

Not with certainty. Your device receives the gateway as a setting, and the address alone does not reveal it. What the address and subnet mask do give you is the range the gateway must sit in, and by convention many networks use the first usable address of that range, and some use the last.

For example, in the test above the mask 255.255.252.0 is a /22, so the network ran from 172.20.64.0 to 172.20.67.255 and the usable hosts from 172.20.64.1 to 172.20.67.254. The gateway was 172.20.64.1, the first usable address. Our subnet calculator works out that range for any address and mask, and CIDR and subnet masks explained covers the arithmetic. Treat the result as a guess to test with ping, then confirm it with one of the commands above.

What is my ISP gateway address?

Your ISP gateway is the provider's router on the far side of your own router. Your devices never talk to it directly. Your router uses it as the default gateway for its own internet link, the same way your laptop uses your router.

There are two ways to see it:

  • Router status page. Log in to the router and open the Internet, WAN or Status page. The gateway listed there, next to the router's WAN address, is normally the provider's.
  • Traceroute. Run tracert /d 1.1.1.1 on Windows or traceroute -n 1.1.1.1 on a Mac or Linux. Hop 1 is your own gateway. The next hop is usually the provider. The /d and -n options skip name lookups so the trace finishes faster (Microsoft tracert reference).

On larger networks the second hop can still be yours. In our office trace, hops 2 and 3 were also private addresses (192.168.40.2 and 172.16.2.1), and the first public address appeared at hop 4. If your router's WAN address falls between 100.64.0.0 and 100.127.255.255, your provider uses carrier-grade NAT from the shared range in RFC 6598, and the provider's gateway is inside that range too. Our guide to CGNAT explains what that changes.

Why does my default gateway start with fe80?

That is the IPv6 gateway. A link-local address is an IPv6 address that only works on your own network segment. Link-local addresses start with fe80, and routers must not forward packets sent to them to other links (RFC 4291, section 2.5.6; NIST SP 800-119). IPv6 routers announce themselves in Router Advertisements sent from their link-local address, so your device records that address as its IPv6 default gateway (RFC 4861). Windows can list it in ipconfig next to the IPv4 gateway, and on a home network both point at the same router. On our test Mac, netstat -nr -f inet6 also listed fe80 default routes on its utun tunnel interfaces. Our guide to IPv6 explains link-local addresses.

Gateway, subnet mask and DNS: how they fit together

SettingWhat it decidesExample
IP addressWho this device is on the network192.168.1.42
Subnet maskWhich addresses count as local255.255.255.0
Default gatewayWhere everything else is sent192.168.1.1
DNS serverWho turns names into addresses1.1.1.1

The gateway must sit inside the range your subnet mask defines, or your device cannot reach it.

Your gateway is not your public IP address

The gateway is a private address that only exists inside your network. The address the internet sees belongs to the router's outside interface, and you can check it on our IP checker. If the WAN address on your router's status page differs from the one we show, your router may sit behind another router, or your provider may use carrier-grade NAT, which blocks unsolicited inbound connections. See public vs private IP addresses.

Troubleshooting

  • No gateway listed. Your device did not get a DHCP lease, or a manual configuration left the gateway blank. Reconnect to the network or restart the router.
  • Gateway shows 0.0.0.0. Same cause: no working configuration was received.
  • An address starting 169.254. The device gave itself a fallback address because DHCP failed entirely. See what a 169.254 address means.
  • Gateway does not answer a ping. Check the cable or Wi-Fi link first. Some routers ignore pings, so also try opening the gateway address in a browser.
  • Gateway responds but nothing loads. Local networking is fine and the fault is upstream, either DNS or your provider. Try our ping test, or read what is a DNS server.
  • Two gateways. A second router behind the first creates double NAT, which breaks port forwarding until one is put into bridge mode. What is NAT explains why.

Frequently asked questions

Is the default gateway the same as my router's IP address?

On a home network, yes. The router's LAN address is the gateway every device uses. On office and campus networks the gateway may be a separate router or firewall that you cannot log in to.

Can I change my default gateway?

Yes, by setting a manual (static) IP configuration on the device, or for every device at once in the router's DHCP settings. Enter a wrong address and that device loses internet access while local devices still work, so note the old value first.

Why does my computer show two default gateways?

Usually one is IPv4 and one is IPv6, and both belong to the same router. A VPN or a second network adapter, such as Wi-Fi and Ethernet at once, can also add a gateway.

Sources and further reading

Try it yourself

See the real numbers for your own connection with our free tools.

Keep reading