Networking & Security

What is an IP address and how to find yours? A practical guide

An IP address is a numeric identifier used to identify devices on networks or the Internet. This guide explains IPv4 vs IPv6, public vs private IPs, static vs dynamic addresses, and how to find IPs on different devices.

5 min read
  • پشتیبانی شبکه
  • می‌شود
  • آدرس
  • کنید
  • اینترنت
  • استفاده
  • عمومی
  • داخلی
What is an IP address and how to find yours? A practical guide

خلاصه تخصصی مقاله

An IP address is a numeric identifier used to identify devices on networks or the Internet. This guide explains IPv4 vs IPv6, public vs private IPs, static vs dynamic addresses, and how to find IPs on different devices.

موضوعات اصلی: پشتیبانی شبکه، می‌شود، آدرس، کنید، اینترنت، استفاده

What is an IP address and why does it matter?

An IP address is a numeric identifier used to identify each device on networks or the Internet. Every system, phone, or server needs an IP address to communicate with other devices; it is like a postal address in the digital space.

1. IPv4 vs IPv6

IPv4 is the older protocol using 32 bits in four octets, for example 192.168.1.10. IPv6 is newer, uses 128 bits and hexadecimal groups separated by colons, for example 2001:0db8:85a3:0000:0000:8a2e:0370:7334.

FeatureIPv4IPv6
Address length32 bits128 bits
FormatDecimalHexadecimal
Number of addressesApproximately 4.3 billionVirtually unlimited
Intrinsic securityNoneHas security features
Speed and stabilityAverageHigher and more stable

2. Public IP vs Private IP

Typically a device has two IPs: private for local network use and public for Internet access.

Private IP is valid only within the local network and is assigned by the router or DHCP. Public IP is the address visible on the Internet and is determined by the Internet Service Provider (ISP).

IP TypeNumeric RangesUsage
Private IP (LAN)10.0.0.0–10.255.255.255
172.16.0.0–172.31.255.255
192.168.0.0–192.168.255.255
Used in private networks (LAN)
Public IPOutside the private rangesVisible on the Internet

Note: Network Address Translation (NAT) is commonly used to map private addresses to a single public address for Internet access.

3. Static vs Dynamic IP

Static IP is manually or permanently assigned and remains fixed, often used for servers or critical devices.

Dynamic IP is allocated automatically by DHCP and can change with each connection.

FeatureStaticDynamic
Assignment methodManual / permanentAutomatic / temporary
Best useServers, network devicesHome users
SecurityRequires secure configurationTypically adequate for ordinary users
CostGenerally higherUsually free or cheaper

Supplementary concepts: Sticky IP and CGNAT

Sticky IP is a dynamic IP that does not change until the modem/router is reset, making it appear quasi-static for home users.

CGNAT (Carrier-Grade NAT) hides multiple users behind a shared public IP to conserve IPv4 addresses; this can affect port forwarding and some services.

How to find your IP?

Finding your IP is straightforward, with methods suitable for general users and for networking professionals.

1. Finding Public IP

To see the IP visible on the Internet, you can search in Google or use IP-checking tools.

Method 1: Google search

Search What is my IP; the top result shows your public IP.

Method 2: Use IP-checking sites

Tools like WhatIsMyIPAddress, ipinfo.io, and ipleak.net display your public IP and may show approximate location, ISP, and connection type (IPv4/IPv6).

2. Finding Private IP on Windows

To view your device’s IP in the LAN, follow these steps:

  1. Open Run with Windows + R.
  2. Type cmd and press Enter.
  3. Type ipconfig and press Enter.

In the output, look for IPv4 Address; that is your private IP (example: 192.168.1.104).

3. Viewing IP on a smartphone

Android

  1. Open Settings.
  2. Network & Internet → Wi‑Fi.
  3. Tap the connected network and open Advanced.
  4. IP address is shown.

iPhone

  1. Settings → Wi‑Fi.
  2. Tap the i icon next to the connected network.
  3. IP address appears under IPv4 Address.

4. Using a router or modem

  1. Enter 192.168.1.1 in the browser.
  2. Log in to the admin panel (default credentials are often admin).
  3. In Status or WAN Info you can see both public and private IPs.

5. IP lookup with professional network tools

For network professionals, on Linux or macOS you can use:

  1. ifconfig
  2. ip addr show

Tools such as Angry IP Scanner, Advanced IP Scanner, and Wireshark can help monitor traffic and IP activity.

Special note

If your IP is CGNAT, your real IP may not be visible on the Internet even with command-line checks. In such cases, a Static IP is often required for port forwarding.

برای ارزیابی پایداری، امنیت و نگهداری این زیرساخت، راهنمای پشتیبانی شبکه را نیز مطالعه کنید.