How to Find Your IP and Default Gateway Easily

Discover how to locate your public IP, private IP, and default gateway on Windows, macOS, and Linux with our step-by-step guide.

Key takeaway: follow the security steps carefully and prefer AES-256 encryption where available.

Understanding IP Addresses and Gateways Before diving into the steps to find your IP addresses and default gateway, it's important to understand these terms. Your public IP address is the unique identifier assigned to your device by your internet service provider (ISP) for communication over the internet. In contrast, your private IP address identifies your device within your local network. The default gateway acts as an access point or router that your device uses to send information outside your local network. Before You Start To follow this guide, you need a computer running either Windows, macOS, or Linux and a basic understanding of navigating your operating system. While no specific tools are required, having administrative rights on your computer can be beneficial. How to Find Your Public IP Address Finding your public IP address is straightforward and can be done using any operating system. 1. Open a web browser. 2. Navigate to a search engine like Google. 3. Type "What is my IP address" into the search bar. 4. Your public IP address will be displayed at the top of the search results. Note that public IP addresses can change periodically, especially if not static, which is common with most residential ISPs. Finding Your Private IP Address on Windows 1. Press Windows + R to open the Run dialog. 2. Type "cmd" and press Enter to open the Command Prompt. 3. In the Command Prompt window, type "ipconfig" and press Enter. 4. Look for "IPv4 Address" to find your private IP address. Finding Your Private IP Address on macOS 1. Click on the Apple menu and select "System Preferences." 2. Choose "Network." 3. Select your active network connection (e.g., Wi-Fi or Ethernet) on the left. 4. Your private IP address will be displayed under "Status." Finding Your Private IP Address on Linux 1. Open the Terminal. 2. Type "hostname -I" and press Enter. 3. The displayed number is your private IP address. Finding Your Default Gateway on Windows 1. Open the Command Prompt using Windows + R, then type "cmd." 2. Type "ipconfig" and press Enter. 3. Look for "Default Gateway" to find the address. Finding Your Default Gateway on macOS 1. Go to "System Preferences" and select "Network." 2. Select your network connection and click "Advanced." 3. The "Router" field will show the default gateway. Finding Your Default Gateway on Linux 1. Open the Terminal. 2. Enter the command "ip route | grep default." 3. The output will list your default gateway. Key Takeaways • Your public IP is…

Related reading

VPN guides and use cases

More blog articles · VPN plans