Open In App

How to Get Local IP Address?

Last Updated : 20 Feb, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

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.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads