How to Find Your IP Address on Any Computer

Every device connected to a network has an IP address — a numerical label that identifies it on that network. Whether you're troubleshooting a connection, setting up a home server, or configuring remote access, knowing how to locate your IP address is a fundamental skill. The process varies depending on your operating system, the type of IP address you need, and how your network is structured.

What Is an IP Address, Exactly?

An IP address (Internet Protocol address) is a string of numbers that functions like a mailing address for your device. It tells other devices and services where to send data.

There are two types you'll encounter:

  • Private IP address — the address assigned to your computer within your local network (home, office, etc.). This is what your router sees.
  • Public IP address — the address your entire network presents to the internet. All devices on your home network typically share one public IP, assigned by your ISP.

Which one you need matters. Accessing a device remotely from outside your network? You need the public IP. Setting up a local printer, NAS, or game server? You need the private IP.

How to Find Your IP Address on Windows 🖥️

Windows offers several methods, from graphical menus to command-line tools.

Using Settings (Windows 10 and 11)

  1. Open SettingsNetwork & Internet
  2. Select Wi-Fi or Ethernet, depending on your connection
  3. Click on the network you're connected to
  4. Scroll down to find IPv4 address

Using Command Prompt

  1. Press Windows + R, type cmd, and hit Enter
  2. Type ipconfig and press Enter
  3. Look for IPv4 Address under your active adapter

The ipconfig command also shows your subnet mask and default gateway (your router's local IP), which are useful for network troubleshooting.

Using PowerShell

If you prefer PowerShell, the command Get-NetIPAddress returns detailed IP configuration for all adapters — useful if you have multiple network interfaces.

How to Find Your IP Address on macOS

Using System Settings (macOS Ventura and Later)

  1. Click the Apple menuSystem Settings
  2. Select Network
  3. Click your active connection (Wi-Fi or Ethernet)
  4. Your IP address is displayed in the connection details panel

Using System Preferences (macOS Monterey and Earlier)

  1. Apple menuSystem PreferencesNetwork
  2. Select your active connection on the left
  3. Your IP address appears on the right side of the panel

Using Terminal

Open Terminal and type:

ipconfig getifaddr en0 

Use en0 for Wi-Fi or en1 for Ethernet, depending on your Mac's configuration. For a fuller picture, ifconfig lists all network interfaces.

How to Find Your IP Address on Linux

Linux users typically work with the terminal. The modern command is:

ip addr show 

Look for the inet entry under your active interface (commonly eth0, enp3s0, or wlan0). Older systems may use ifconfig, though this requires the net-tools package on some distributions.

For desktop environments like GNOME or KDE, IP information is usually accessible through Network Manager in the system settings panel.

Finding Your Public IP Address

None of the above methods reveal your public IP — that's handled by your router, not your computer. To find it:

  • Use a browser and search "what is my IP" — search engines and dedicated tools like whatismyipaddress.com or icanhazip.com return your public-facing IP instantly
  • Access your router's admin panel (typically at 192.168.0.1 or 192.168.1.1) and check the WAN/Internet status section

Keep in mind that public IP addresses are often dynamic — your ISP may change them periodically unless you've specifically arranged for a static IP.

Key Variables That Affect What You Find

FactorImpact
Connection typeWi-Fi and Ethernet may show different IPs on the same machine
Multiple adaptersVPNs, virtual machines, and USB adapters add extra interfaces
IPv4 vs IPv6Many networks assign both; which one is active depends on your setup
DHCP vs staticDHCP-assigned IPs can change; static IPs are fixed
VPN activeA VPN replaces your visible public IP and adds a virtual network adapter

When Results Look Unexpected

If you see an address beginning with 169.254.x.x, your device failed to obtain an IP from a DHCP server and assigned itself an APIPA address — a sign of a connection problem, not your real IP.

If you see multiple IPv4 addresses, you likely have multiple active network adapters. A VPN running in the background is a common reason for this.

IPv6 addresses look markedly different — long strings separated by colons (e.g., 2001:0db8:85a3::8a2e:0370:7334). Both formats may be active simultaneously on modern networks. 🌐

The Part That Depends on Your Setup

The steps above cover the most common scenarios, but your specific result depends on factors only visible on your end: how many network adapters your machine has, whether a VPN is running, whether your router assigns dynamic or static addresses, and whether you're on IPv4, IPv6, or a dual-stack network. A command that returns a clean single IP on one machine might surface four different addresses on another — none of them wrong, just reflecting a more complex local network environment.