An IP (Internet Protocol) address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication, acting like a house address for devices on the internet, enabling them to communicate.
🔍 To Find Your Public IP Address (the one the internet sees):
Option 1: Use a website
Just go to:
Option 2: Use a terminal command
If you're on a command line and want to use a curl-based service:
curl ifconfig.me or curl ipinfo.io/ip
🖥️ To Find Your Local/Private IP Address (used in your home or local network):
On Windows:
-
Press
Win + R
, typecmd
, hit Enter. -
In the Command Prompt, type: ipconfig
-
Look for
IPv4 Address
under your network adapter (e.g., Ethernet or Wi-Fi).
On macOS or Linux:
Open the Terminal and type:
ifconfig
Or, if that doesn’t work (some newer Linux distros/macOS):
ip a
Look for something like inet 192.168.x.x
under the active network interface (usually en0
, wlan0
, or eth0
).