---
title: "How to Find Your IP and Default Gateway Easily"
url: "https://astraguardvpn.com/blog/how-to-find-your-ip-and-default-gateway-easily"
description: "Learn how to find your public IP, private IP, and default gateway on Windows, macOS, and Linux. Follow these simple steps for each platform."
updated: "2026-04-03T11:38:10.339Z"
---

# 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.

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 how the internet sees your device; private IP is for local networks. • Steps to find IP addresses differ slightly across Windows, macOS, and Linux. • Default gateway is essential for external network communication. • Always verify steps with updated system or service documentation. • Astraguard VPN can help mask your public IP for secure browsing. FAQs Q: Can my public IP address change? A: Yes, unless you have a static IP, ISPs typically assign dynamic IPs that can change. Q: Why is my default gateway important? A: It's the primary path for your device to reach the internet and other networks. Q: How do I know if my IP is public or private? A: Public IPs are accessible from the internet, while private IPs are used within local networks. Q: Is using a VPN like Astraguard VPN secure? A: Yes, VPNs encrypt your data and can hide your public IP, enhancing online privacy.

---

[More articles](https://astraguardvpn.com/blog) · [VPN plans](https://astraguardvpn.com/packages)
