How to Get Local IP Address?
Last Updated :
20 Feb, 2024
Answer: Open the command line or terminal and type `ipconfig`
(Windows) or `ifconfig`
(Unix/Linux) and press Enter.
A local IP address is assigned to your device by your router and is used to identify it on your local network. It’s different from your public IP address, which identifies your device on the wider internet.
Windows
- Open Command Prompt.
- Type “ipconfig” and press Enter.
- Look for the “IPv4 Address” under the network adapter you are connected to.
macOS
- Open Terminal.
- Type “ipconfig getifaddr en0” for Ethernet or “ipconfig getifaddr en1” for Wi-Fi, and press Enter.
Linux
- Open Terminal.
- Type “ifconfig” or “ip addr show” and press Enter.
- Look for the IP address listed under the network adapter you are connected to.
Your local IP address will be displayed in the output, typically labeled as “IPv4 Address” or similar.
Share your thoughts in the comments
Please Login to comment...