IP & Networking
Updated: 17 views

How to Check Your Local IP and Public IP on Windows (cmd ipconfig), Mac, and Mobile (iOS / Android) — Complete Guide

The fastest ways to check your local private IP, Default Gateway (router address), and external public IP using Windows Command Prompt (cmd ipconfig), macOS Terminal and System Settings, iPhone iOS, and Android phones.

Whether you are setting up a printer, logging into your router admin page (Default Gateway), configuring a firewall whitelist, or troubleshooting a dropped network connection, you frequently need to look up both your "external public IP" and your "local private IP." Below are the fastest cross-platform steps, followed by a quick reference table at the end:

1. The Fastest Way to Check Your "External Public IP" (No Commands Needed)

On any computer or phone, simply open your browser and visit our "My IP (se1.me/en/my-ip)" page. The system automatically displays your current external connection IP, geolocation, Internet Service Provider (ISP/ASN), and browser environment details, complete with one-click copy support.

2. Check Your Local IP on Windows 10 / Windows 11 (cmd ipconfig)

1. Press Win + R on your keyboard to open the "Run" dialog, type cmd, and press Enter to open Command Prompt.
2. In the black terminal window, type ipconfig and press Enter. You will see output similar to the following (numbers below are for illustration; actual values depend on your network):
Wireless LAN adapter Wi-Fi:

   IPv4 Address. . . . . . . . . . . : 192.168.1.105
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
• IPv4 Address: Your computer's private IP within the local area network (for example, 192.168.1.105).
• Subnet Mask: Typically 255.255.255.0.
• Default Gateway: The admin address of your home Wi-Fi router (for example, 192.168.1.1).
3. If you also need to view your MAC hardware address (Physical Address) and DNS server settings, run ipconfig /all instead.

3. Check Your Local IP on macOS (MacBook / iMac)

• Via Graphical Interface: Click the "Apple" menu in the top-left corner ➔ "System Settings" ➔ "Wi-Fi" or "Network" ➔ Click "Details..." next to your currently connected network to view your IP address and router address.
• Via Terminal Command: Open "Terminal" and run ipconfig getifaddr en0 (for Wi-Fi) or ifconfig | grep inet to quickly list your local network IP.

4. Check Your IP on iPhone / iPad (iOS) and Android Phones

• iPhone / iPad: Open "Settings" ➔ "Wi-Fi" ➔ Tap the blue "i" icon next to your connected Wi-Fi network, then scroll down to the "IPV4 ADDRESS" section to see your phone's local Wi-Fi IP and router address.
• Android Phones: Open "Settings" ➔ "Network & internet (or Wi-Fi)" ➔ Tap the gear icon next to your connected Wi-Fi network ➔ Expand "Advanced" to view your IP address and gateway details.
• Note: If your phone is using 4G / 5G mobile data (not connected to Wi-Fi), open your browser and visit se1.me/en/my-ip directly to view the external public IP assigned by your mobile carrier.

5. Quick Reference Table Across Platforms

PlatformNavigation PathWhat It Shows
Windows 10 / 11Win + R ➔ type cmd ➔ run ipconfigLocal private IP, Default Gateway
macOSSystem Settings ➔ Wi-Fi ➔ Details, or run ipconfig getifaddr en0 in TerminalLocal private IP, router address
iPhone / iPadSettings ➔ Wi-Fi ➔ tap the "i" icon next to the networkLocal IP, router address
AndroidSettings ➔ Network & internet (or Wi-Fi) ➔ Wi-Fi gear icon ➔ AdvancedLocal IP, gateway address
Any Device BrowserOpen se1.me/en/my-ipExternal public IP (including mobile data)

Further Reading & Related Guides