📚 IP Address Basics 4 min de leitura

How to Find Your IP Address

Step-by-step instructions to find your public and private IP on Windows, Mac, Linux, and mobile.

Finding Your Public IP Address

Your public IP is the address the rest of the internet sees. The easiest way to find it is to use an online tool — simply visit IPFYI.com and your public IP will be displayed.

You can also use the command line:

# Using curl
curl ifconfig.me

# Alternative services
curl ipinfo.io/ip
curl icanhazip.com

Finding Your Private IP Address

Your private IP is the address assigned to your device within your local network.

Windows

# Command Prompt
ipconfig

# Look for "IPv4 Address" under your active adapter
# Typically shows 192.168.x.x or 10.x.x.x

Or go to Settings → Network & Internet → Properties and look for the IPv4 address.

macOS

# Terminal
ifconfig en0 | grep inet

# Or for Wi-Fi specifically
ipconfig getifaddr en0

Or go to System Settings → Network → Wi-Fi → Details and find the IP address.

Linux

# Modern systems
ip addr show

# Or the shorter version
hostname -I

iPhone / iPad

Go to Settings → Wi-Fi → tap the (i) icon next to your connected network → look for IP Address.

Android

Go to Settings → Network & Internet → Wi-Fi → tap your connected network → look for IP address.

Public vs Private: Quick Check

Type How to Find Typical Format
Public IP IPFYI.com or curl ifconfig.me Varies (e.g., 203.0.113.50)
Private IP Device network settings 192.168.x.x or 10.x.x.x

Why They're Different

Almost every home and office uses NAT (Network Address Translation), which means your private IP differs from your public IP. Multiple devices share one public IP through your router.

If your public and private IPs are the same, your device is directly connected to the internet without NAT — which is uncommon and potentially a security concern.

Veja também