To get the primary IP address of your local machine, the method depends on the operating system you’re using:
1. Windows
- Command Prompt: Open the Command Prompt and type
ipconfig
. Look under the active network connection (e.g., “Ethernet adapter” or “Wireless LAN adapter”) for the IPv4 Address. - PowerShell: Use PowerShell to view network information, where you can find your IP address under active connections.
2. macOS
- System Preferences: Go to System Preferences > Network. Select your active network (e.g., Wi-Fi or Ethernet) and view the IP address displayed on the right.
- Terminal: Use Terminal to find your IP by checking your active network settings.
3. Linux
- Settings: Open the network settings from your system menu, and check the details for your active connection to find the IP address.
- Command Line: Use a terminal to view network configuration details under the active interface.
4. General Tools
- Router Dashboard: Log in to your router’s admin dashboard. Most routers display connected devices and their IP addresses.
- Online Tools: Visit online services like “What Is My IP” to see your external IP, though this differs from your local IP.