How to Find Your IP Address and Default Gateway on Any Device

Understanding your IP address and default gateway is one of those foundational networking skills that comes up more often than you'd expect — whether you're troubleshooting a connection, setting up a home network, or configuring a device manually. Both pieces of information live on your device right now. The trick is knowing where to look.

What Is an IP Address (and Why Does It Matter)?

Your IP address (Internet Protocol address) is a numerical label assigned to your device on a network. Think of it like a mailing address — it tells other devices and servers where to send data.

There are two types you'll encounter:

  • Private IP address — the address your router assigns to your device within your home or office network (e.g., 192.168.1.45). Other devices on the same network see you at this address.
  • Public IP address — the address your internet service provider (ISP) assigns to your router. This is what the wider internet sees.

When most people ask "how do I find my IP address," they usually mean the private IP — the one your device uses to communicate with your router and other local devices.

What Is a Default Gateway?

Your default gateway is almost always the IP address of your router. It's the "door" your device uses to reach networks outside its own — including the internet. When your laptop sends a request to load a webpage, it first sends that request to the default gateway, which then routes it outward.

A typical home gateway address looks like 192.168.1.1 or 192.168.0.1, though routers can be configured to use other addresses in the 192.168.x.x or 10.x.x.x range.

How to Find Your IP Address and Gateway on Windows 🖥️

Option 1: Command Prompt (fastest method)

  1. Press Windows + R, type cmd, and hit Enter
  2. In the Command Prompt window, type: ipconfig
  3. Press Enter

Look for your active network adapter (labeled Ethernet adapter or Wi-Fi adapter). You'll see:

FieldWhat It Means
IPv4 AddressYour private IP address
Subnet MaskDefines your network's range
Default GatewayYour router's IP address

Option 2: Settings UI

Go to Settings → Network & Internet → Wi-Fi (or Ethernet) → click your connection → scroll to Properties. Your IP and gateway will be listed under network details.

How to Find Your IP Address and Gateway on macOS

Option 1: Terminal

Open Terminal and type: ifconfig | grep inet — this lists active network interfaces and their IP addresses. For the gateway, type: netstat -nr | grep default

Option 2: System Settings

Navigate to System Settings → Network → select your active connection (Wi-Fi or Ethernet). Click Details and open the TCP/IP tab. You'll see your IP address and router (gateway) address displayed clearly.

How to Find Your IP Address and Gateway on iPhone and Android 📱

iPhone (iOS):

Go to Settings → Wi-Fi → tap the (i) icon next to your connected network. Scroll down to see your IP Address and Router (which is your gateway).

Android:

The exact path varies by manufacturer, but generally: Settings → Network & Internet → Wi-Fi → tap your connected network. Look for Advanced or Network Details — your IP and gateway will appear there.

Note: Android devices running different manufacturer skins (Samsung One UI, Pixel's stock Android, Xiaomi MIUI, etc.) may label these sections differently or nest them under different menus.

Finding Your Public IP Address

Your public IP is not visible through the methods above — those only show your private network address. To find your public IP, the simplest approach is to search "what is my IP" in any browser. The result shows the IP address your ISP has assigned to your router — the one visible to external servers and websites.

When These Numbers Change (and When They Don't)

Most home networks use DHCP (Dynamic Host Configuration Protocol), meaning your router automatically assigns a private IP to each device — and that address can change when you reconnect or restart. If you need a device to always have the same private IP (for a printer, media server, or similar), you'd look at setting a static IP or configuring a DHCP reservation in your router settings.

Public IP addresses are similarly dynamic for most residential internet plans, unless your ISP has assigned you a static public IP (typically a paid feature on business plans).

The Variables That Change Where You Look

The steps above cover the most common setups, but several factors affect exactly what you see and where:

  • Operating system version — older Windows versions use Control Panel; newer ones use the Settings app
  • Network adapter type — Ethernet, Wi-Fi, and virtual adapters (like VPNs) each appear separately, and a VPN will typically show a different gateway
  • Router brand and firmware — some routers use non-standard gateway addresses outside the typical 192.168.x.x range
  • Corporate or institutional networks — IT-managed environments often use different IP schemes and may restrict what information is visible
  • Multiple network interfaces — a device connected to both Wi-Fi and Ethernet will show different IP and gateway entries for each

What the right IP address and gateway look like — and which one matters for your task — depends entirely on which network interface you're working with and what you're trying to accomplish.