To see your local IP address, use system commands in the terminal or command prompt. This address identifies your device on a private network, such as your home Wi-Fi or office LAN.
Your local IP address is assigned by your router and remains unique within your network. It's different from your public IP address, which the internet sees. You'll need your local IP for tasks like setting up printers, accessing NAS devices, or troubleshooting network issues.
On Windows, open Command Prompt and run ipconfig. On macOS or Linux, open Terminal and run ifconfig or ip a. Look for entries labeled "IPv4 Address" or "inet" under your active network interface, such as Wi-Fi or Ethernet.
Your local IP address is assigned dynamically via DHCP when your device connects to a network. The router manages this process and assigns addresses in ranges like 192.168.1.x or 10.0.0.x. These addresses are not visible to external networks.
When you run ipconfig on Windows, the system queries each active network adapter and returns configuration details. The relevant line shows something like IPv4 Address. . . . . . . . . . . : 192.168.1.15.
On macOS, ifconfig en0 displays settings for the primary network interface. The output includes a line like inet 192.168.1.15 netmask 0xffffff00 broadcast 192.168.1.255. The en0 refers to the Wi-Fi interface; use en1 for Ethernet.
Different operating systems use distinct commands. The most accurate results come from native tools, not web-based lookups, which show your public IP.
| OS | Command | Interface Name | Key Output Field |
|---|---|---|---|
| Windows | ipconfig |
Wi-Fi, Ethernet | IPv4 Address |
| macOS | ifconfig en0 |
en0 (Wi-Fi), en1 (Ethernet) |
inet value |
| Linux | ip a |
wlan0, eth0 |
inet value |
For faster access, use ipconfig | findstr "IPv4" on Windows to filter only the IPv4 line. On macOS, run ipconfig getifaddr en0 to return just the IP address.
You need your local IP address to connect to devices on your network. For example, accessing a media server at 192.168.1.100 requires knowing that address. Remote desktop connections, port forwarding, and printer setup depend on correct local IPs.
When troubleshooting connectivity, comparing your device's IP with the router's DHCP lease list helps confirm if the device received a valid address. A missing or duplicate IP often indicates a conflict.
Network administrators use local IPs to monitor traffic, assign static addresses, and set up VLANs. Home users may need it to configure smart home devices or stream content between devices.
Many people mistake their public IP for their local IP. Public IPs are visible on websites like whatismyipaddress.com, but they're not useful for internal network tasks.
Another error is assuming all network interfaces have the same IP. Your laptop may have two: one for Wi-Fi (192.168.1.15) and one for Ethernet (10.0.0.5). Always verify which interface you're checking.
A lesser-known fact: some routers assign the same IP to multiple devices during boot-up. This causes conflicts. Use arp -a on Windows or arp -n on macOS to check for duplicate entries.
Open Command Prompt by pressing Win+R, typing cmd, and hitting Enter. Run:
ipconfig
Look for the section labeled "Wireless LAN adapter Wi-Fi". Under it, find:
IPv4 Address. . . . . . . . . . . : 192.168.1.15
This is your local IP. The subnet mask is 255.255.255.0, meaning the network portion is 192.168.1.0. Devices on the same subnet can communicate directly.
I once debugged a printer issue where the device wouldn't respond. Checking the printer's network settings showed it had been assigned 192.168.1.200. My laptop was at 192.168.1.15. Both were on the same network, but the printer's IP was outside the router's DHCP range. Reassigning it manually fixed the connection.