There are two addresses you might want. Your public IP is what websites see; your local (private) IP is your device's address on your home network. Not sure which? See Public vs private IP.
Find your public IP address
On any device, open forgotmyip.com — it shows your public IPv4 and IPv6 with a copy button. From a terminal:
curl https://forgotmyip.com
More options: Get your IP from the command line.
Windows 10 and 11
Using Settings
From Microsoft's instructions (Microsoft Support):
- Open Start → Settings → Network & internet.
- Select Wi‑Fi and then the network you're connected to, or select Ethernet.
- Your address is listed next to IPv4 address.
Using Command Prompt
ipconfig
Without parameters, ipconfig displays the IPv4 and IPv6 addresses, subnet mask and default gateway for every adapter (Microsoft Learn). The Default Gateway is your router.
Using PowerShell
Get-NetIPAddress -AddressFamily IPv4
Get-NetIPAddress lists the computer's IP address configuration; -AddressFamily accepts IPv4 or IPv6.
macOS
Apple documents this route (Apple Support):
- Choose Apple menu → System Settings → General → Sharing.
- Click the Info button next to a sharing service that's turned on.
- The window shows your Mac's network address (for example
vnc://10.212.167.33for Screen Sharing).
Your network's TCP/IP settings are under System Settings → Network → (your connection) → Details → TCP/IP (Apple Support).
Linux
ip address show # addresses of every interface: "inet" = IPv4, "inet6" = IPv6
ip route show default # your default gateway (router)
See the ip-address(8) and ip-route(8) manual pages.
iPhone and iPad
Open Settings → Wi‑Fi and tap the Info button next to the connected network to see and change its settings (Apple Support).
Android
On many Android phones: Settings → Network & internet → Internet, then tap the connected network to see its settings (Android Help). Menu names differ between manufacturers and Android versions.
Find your router's IP address
Your router's address is the default gateway:
| System | How |
|---|---|
| Windows | ipconfig → Default Gateway (Microsoft Learn) |
| Linux | ip route show default (ip-route(8)) |
Typing that address into a browser usually opens the router's admin page.