How to find your IP address on any device
There are two addresses you might be after: your public IP (what websites see) and your device's private IP (what your router calls it). Here's how to find each, anywhere.
Your public IP (any device)
Open gopherip.com. That's it, the big number is your public IP. From a terminal, run curl gopherip.com. Your computer can't see its own public address on its own, because the router does the swap, so asking an outside server like GopherIP is the reliable way.
Your private IP
Mac
- Open System Settings and choose Wi-Fi (or Network for a cable).
- Click Details next to the network you're on. The IP address is listed on the TCP/IP tab.
Terminal: ipconfig getifaddr en0 (Wi-Fi on most Macs).
Windows
- Open Settings, then Network & internet.
- Choose Wi-Fi or Ethernet, then your connection's properties. Look for IPv4 address.
Command Prompt: ipconfig and look for "IPv4 Address."
Linux
Run ip -4 addr show or hostname -I.
iPhone and iPad
- Open Settings, then Wi-Fi.
- Tap the ⓘ button next to your network. The IP Address is listed there.
Android
- Open Settings, then Network & internet (or Connections), then Wi-Fi.
- Tap your network (or its gear icon). The IP address is under the details or Advanced section.
Menus vary a little by phone maker.
Your router's address
Your router usually lives at the "default gateway" or "router" address shown in the same network details screens above, commonly 192.168.1.1 or 192.168.0.1. Type it into a browser to reach the router's admin page. The router's status page also shows the public IP your provider assigned, which should match what GopherIP shows (unless you're on a VPN or your provider uses carrier-grade NAT).
Which one should I give someone?
For anything on the internet (server allowlists, remote support, game servers), the public one. For anything inside your own network (printers, port forwarding, home servers), the private one. Still fuzzy? Read public vs. private IP addresses.