What Is an IP Address? IPv4 vs IPv6, Public vs Private IP, Static vs Dynamic IP Explained
QUICK ANSWER An IP address (Internet Protocol address) is a numerical identifier used by devices to communicate across networks that use the Internet Protoco...
QUICK ANSWER
An IP address (Internet Protocol address) is a numerical identifier used by devices to communicate across networks that use the Internet Protocol. Computers, smartphones, servers, routers, printers, CCTV systems, and many other network-connected devices use IP addresses so network traffic can be sent to the correct destination.
Two IP versions are widely relevant:
- IPv4 – for example,
192.168.1.10 - IPv6 – for example,
2001:db8:1234:5678::10
IP addresses can also be described as public or private, and static or dynamic, depending on where and how they are assigned.
A simple way to understand an IP address is to think of it as a network address for a device or network interface. Just as an address helps identify where something should be delivered, an IP address helps networks determine where data packets should go.
COMPLETE ARTICLE
What Is an IP Address?
IP stands for Internet Protocol. An IP address is an address assigned to a network interface so that devices can identify and communicate with each other using Internet Protocol.
When you open a website, send an email, connect to a network printer, access a server, or use an internet-based application, IP addresses are involved in directing network packets between the source and destination.
For example, a computer on an office network might have:
192.168.1.25
while the office's internet connection may appear to external internet services under a different public IP address.
This distinction is important because the IP address shown on your Windows computer is not necessarily the same address websites see.
Why Are IP Addresses Required?
Network communication requires a way to identify where packets originate and where they need to go.
An IP address helps provide this addressing mechanism.
For example:
Computer → Router → Internet → Web Server
When your computer requests a webpage, networking protocols use source and destination IP addresses to route packets through interconnected networks.
The response is then routed back toward your network and ultimately to the requesting device.
IP addressing is therefore fundamental to technologies such as:
- Internet browsing
- Cloud applications
- Remote Desktop
- File sharing
- Network printers
- VoIP
- CCTV and IP cameras
- VPN connections
- DNS
- Web hosting
- Online gaming
- Mobile networks
What Does an IP Address Look Like?
The appearance depends on whether the network uses IPv4 or IPv6.
IPv4 Example
192.168.1.100
IPv4 addresses are 32 bits long and are normally displayed as four decimal numbers separated by periods.
Each number ranges from 0 to 255.
For example:
10.0.0.5
172.16.20.10
192.168.1.50
8.8.8.8
Because IPv4 uses 32 bits, its address space contains approximately 4.29 billion possible addresses.
Not all of these addresses are available as ordinary public internet addresses because portions of the IPv4 address space are reserved for private networks and other special purposes.
What Is IPv6?
IPv6 is the newer version of the Internet Protocol and uses 128-bit addresses, providing an enormously larger address space than IPv4.
An IPv6 address may look like:
2001:db8:1234:5678:abcd:ef01:2345:6789
IPv6 also supports shortened notation. Consecutive groups of zeros can be compressed according to IPv6 formatting rules.
For example:
2001:db8:0:0:0:0:0:1
can be written as:
2001:db8::1
The 2001:db8::/32 prefix used in these examples is reserved for documentation, making it appropriate for examples rather than representing a real operational network.
IPv4 vs IPv6
| Feature | IPv4 | IPv6 |
|---|---|---|
| Address size | 32-bit | 128-bit |
| Typical format | 192.168.1.10 |
2001:db8::10 |
| Address space | About 4.29 billion | Approximately 3.4 × 10³⁸ |
| Separator | Period . |
Colon : |
| NAT commonly used | Yes | Not required for address conservation |
| Deployment | Extremely widespread | Increasingly deployed |
| Example loopback | 127.0.0.1 |
::1 |
IPv4 remains extensively used, while modern networks increasingly support IPv6.
Many internet connections operate in a dual-stack configuration where both IPv4 and IPv6 are available.
What Is a Private IP Address?
A private IP address is used within a private IPv4 network such as a home, office, school, or internal corporate network.
The IPv4 ranges reserved for private networks are:
| Private IPv4 Range | CIDR |
|---|---|
10.0.0.0 – 10.255.255.255 |
10.0.0.0/8 |
172.16.0.0 – 172.31.255.255 |
172.16.0.0/12 |
192.168.0.0 – 192.168.255.255 |
192.168.0.0/16 |
Common examples include:
192.168.0.10
192.168.1.100
10.0.0.20
172.16.1.50
These addresses are not globally routable across the public Internet.
Your router normally assigns private IP addresses to devices through DHCP (Dynamic Host Configuration Protocol).
For example:
Router 192.168.1.1
Desktop PC 192.168.1.10
Laptop 192.168.1.11
Printer 192.168.1.20
CCTV NVR 192.168.1.30
All these devices can communicate within the local network while typically sharing the router's internet connectivity.
What Is a Public IP Address?
A public IP address is an address that can be globally routed on the Internet, subject to routing and security policies.
For a typical home or small office internet connection, the ISP provides connectivity using a public-facing address somewhere in the connection path.
However, there is an important modern exception: Carrier-Grade NAT (CGNAT).
With CGNAT, your router may not receive a dedicated public IPv4 address. Instead, multiple ISP customers can share public IPv4 addresses through the provider's NAT infrastructure.
This can affect services that require unsolicited inbound IPv4 connectivity, including some:
- Self-hosted servers
- CCTV remote-access configurations
- VPN servers
- Remote Desktop configurations
- Port-forwarding applications
- Peer-to-peer applications
Therefore, if port forwarding is configured correctly but external connections still fail, checking whether the ISP uses CGNAT can be an important troubleshooting step.
Public IP vs Private IP
Consider a small office containing several computers:
Internet
|
Public IP / ISP Network
|
Router
|
+-- PC 1 192.168.1.10
+-- PC 2 192.168.1.11
+-- Laptop 192.168.1.12
+-- Printer 192.168.1.20
The addresses beginning with 192.168.1.x in this example are private addresses.
To internet services, traffic from these devices may appear to originate from a public IP associated with the router or ISP's NAT infrastructure.
What Is NAT?
NAT (Network Address Translation) allows a network device, commonly a router or firewall, to translate addresses as traffic moves between networks.
In a typical IPv4 home or office network, NAT allows multiple devices with private IP addresses to access the Internet through a smaller number of public IPv4 addresses, often one.
For example:
192.168.1.10 ─┐
192.168.1.11 ─┼─ Router/NAT ─ Public Internet
192.168.1.12 ─┘
The router keeps track of connections so returning traffic can be delivered to the appropriate internal device.
Is NAT a Firewall?
Not exactly.
NAT and firewalling are different functions, although consumer routers commonly perform both.
You should not treat NAT alone as a complete security solution. Proper firewall configuration, operating-system security, authentication, updates, and secure application configuration remain important.
What Is a Static IP Address?
A static IP address is intended to remain consistent rather than changing through normal address assignment.
Static addressing can be useful for:
- Servers
- Network printers
- NAS devices
- CCTV/NVR systems
- Business internet connections
- VPN servers
- Remote-access systems
- DNS-hosted services
- Applications that restrict access by source IP
There are two common contexts.
Static Private IP
You may manually configure an internal device with an address such as:
192.168.1.50
Alternatively, and often preferably, you can configure a DHCP reservation on the router or DHCP server so the device consistently receives the same address.
Static Public IP
An ISP may provide a fixed public IP address, commonly as part of a business or optional paid service.
This is useful when external systems need to reliably reach your network or when another service must whitelist your organization's public IP.
What Is a Dynamic IP Address?
A dynamic IP address is assigned automatically and may change.
DHCP is commonly used to dynamically assign addresses on local networks.
Your ISP may also dynamically assign the public IPv4 address associated with your connection.
Dynamic addressing is convenient because network administrators do not have to manually configure an IP address on every device.
Static IP vs Dynamic IP
| Feature | Static IP | Dynamic IP |
|---|---|---|
| Expected to change | Normally no | Can change |
| Configuration | Manual/reserved/provider-assigned | Usually automatic |
| Administration | More planning required | Easier |
| Servers | Often preferred | Possible with additional solutions |
| Ordinary client devices | Usually unnecessary | Common |
| Cost | Public static IP may cost extra | Often included with service |
A static IP is not automatically faster than a dynamic IP. The main difference is address consistency, not internet speed.
What Is DHCP?
DHCP (Dynamic Host Configuration Protocol) automatically supplies network configuration to devices.
Depending on the network, DHCP can provide information such as:
IP Address: 192.168.1.25
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DNS Server: 192.168.1.1
Without DHCP, administrators would generally need to configure addressing manually or use another address-configuration mechanism.
For most client computers on ordinary home and office networks, DHCP is the simplest configuration.
What Is a Subnet Mask?
In IPv4, the subnet mask identifies which portion of an address represents the network prefix.
For example:
IP Address: 192.168.1.50
Subnet Mask: 255.255.255.0
This subnet mask is equivalent to:
192.168.1.50/24
The /24 means that the first 24 bits represent the network prefix.
A typical /24 IPv4 subnet contains 256 total addresses, although in a conventional subnet the network and broadcast addresses are not assigned to ordinary hosts, leaving 254 usable host addresses.
What Is a Default Gateway?
A default gateway is the router or network device to which a computer normally sends packets when their destination is outside directly connected networks and no more specific route exists.
Example:
Computer IP: 192.168.1.25
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
In many small networks, 192.168.1.1 is the router.
Without a correctly configured gateway, a computer may still communicate with devices on its local subnet but fail to access remote networks or the Internet.
What Is DNS and How Is It Related to IP Addresses?
Humans generally prefer names such as:
example.com
rather than remembering numeric addresses.
DNS (Domain Name System) helps applications find IP addresses associated with domain names.
A simplified process is:
You enter a domain name
↓
DNS lookup occurs
↓
An IP address is returned
↓
Your device connects toward that destination
DNS and IP addressing therefore work closely together, but they perform different functions.
IP provides network addressing and routing, while DNS provides name resolution.
What Is the Loopback IP Address?
A loopback address allows a computer to communicate with itself through its networking stack.
For IPv4, the entire range:
127.0.0.0/8
is reserved for loopback.
The most commonly used address is:
127.0.0.1
which is commonly associated with:
localhost
For IPv6, the loopback address is:
::1
Developers and administrators frequently use loopback addresses when testing locally running applications and services.
What Is an APIPA Address?
Windows may automatically assign an IPv4 address from the link-local range:
169.254.0.0/16
when automatic addressing is enabled but normal DHCP configuration is unavailable.
You might see an address such as:
169.254.45.20
This is often called an APIPA (Automatic Private IP Addressing) address in Windows terminology.
If you expected an address such as 192.168.1.x but receive 169.254.x.x, investigate:
- Ethernet cable or Wi-Fi connectivity
- Router or switch connection
- DHCP server availability
- Network adapter status
- VLAN configuration
- DHCP scope exhaustion
- Network driver problems
A 169.254.x.x address does not automatically mean the network card is defective.
How to Find Your IP Address in Windows
Method 1: Using Command Prompt
Open Command Prompt and run:
ipconfig
Look for:
IPv4 Address
Subnet Mask
Default Gateway
For more detailed configuration, run:
ipconfig /all
This can display additional information including:
- Host name
- Physical/MAC address
- DHCP status
- DHCP server
- DNS servers
- Lease information
- IPv4 and IPv6 configuration
No administrator rights are normally required just to run these commands.
How to Find Your IP Address Using PowerShell
Open PowerShell and run:
Get-NetIPAddress
For IPv4 information only:
Get-NetIPAddress -AddressFamily IPv4
To inspect broader network adapter configuration:
Get-NetIPConfiguration
PowerShell is particularly useful for administrators managing multiple network interfaces or troubleshooting Windows servers.
How to Find Your Public IP Address
Your public-facing IP generally cannot be determined simply by looking at the private IPv4 address displayed by ipconfig.
You can use a reputable "What is my IP?" service or check the WAN/Internet status page of your router.
Be aware that the result can vary because of:
- VPN services
- Proxy servers
- CGNAT
- Corporate gateways
- IPv4 versus IPv6
- Multiple internet connections
For example, when connected through a VPN, websites may see the VPN provider's exit IP rather than your normal internet connection's public IP.
What Is a MAC Address? Is It the Same as an IP Address?
No.
An IP address and a MAC address serve different networking purposes.
| IP Address | MAC Address |
|---|---|
| Logical network-layer address | Link-layer hardware/interface identifier |
| Used for IP communication and routing | Used on local network technologies such as Ethernet/Wi-Fi |
| May change frequently | Typically associated with an interface, though it can be changed/randomized |
Example: 192.168.1.25 |
Example: 00-1A-2B-3C-4D-5E |
A computer normally has both.
Can Two Devices Have the Same IP Address?
Two devices generally should not use the same IPv4 address simultaneously on the same subnet.
If they do, an IP address conflict can occur.
Possible symptoms include:
- Intermittent connectivity
- No network access
- Connections going to the wrong device
- Windows network warnings
- Printer or server connectivity failures
This commonly happens when manually assigned static addresses overlap with addresses being distributed by DHCP.
Recommended Practice
When using fixed private addresses, either:
- Configure them outside the DHCP allocation pool, or
- Create DHCP reservations.
This reduces the risk of duplicate addresses.
Can an IP Address Identify Your Exact Location?
Not reliably.
A public IP address can sometimes be associated with an approximate geographic area or ISP, but IP geolocation databases are not precise enough to assume that an IP reveals a person's exact physical address.
Accuracy can be affected by:
- ISP infrastructure
- Mobile networks
- VPNs
- Proxies
- CGNAT
- Corporate networks
- Geolocation database accuracy
Therefore, an IP address should not be treated as reliable proof of someone's exact physical location.
Does Your IP Address Reveal Your Identity?
An IP address by itself generally does not directly reveal a person's name, home address, or complete identity to an ordinary website visitor.
However, IP addresses can form part of logs and may be combined with account information, ISP records, timestamps, cookies, authentication records, or other data.
For this reason, IP addresses can have privacy and security significance even though they are not equivalent to a person's identity.
Does a VPN Change Your IP Address?
A VPN usually changes the public-facing source IP address seen by internet destinations.
A simplified path is:
Your Device
↓
Encrypted VPN Tunnel
↓
VPN Server
↓
Website
The website normally sees the VPN server's public IP rather than the public IPv4 address ordinarily associated with your direct internet connection.
However, a VPN does not make someone automatically anonymous or eliminate every form of online tracking.
Can Someone Hack a Computer Just by Knowing Its IP Address?
Knowing an IP address alone does not automatically give an attacker access to a computer.
Risk depends on factors such as:
- Exposed network services
- Open ports
- Firewall configuration
- Software vulnerabilities
- Weak passwords
- Remote-access configuration
- Router security
- Missing security updates
For example, exposing Remote Desktop Protocol (RDP) directly to the public Internet can increase attack exposure.
Where practical, remote administrative access should be protected using appropriate technologies such as a securely configured VPN, Remote Desktop Gateway, zero-trust access solution, strong authentication, firewall restrictions, and multi-factor authentication where supported.
Common IP Address Troubleshooting Commands
Display IP Configuration
ipconfig /all
Test the Local TCP/IP Stack
ping 127.0.0.1
Test the Default Gateway
Example:
ping 192.168.1.1
Use your actual gateway address.
Test IP Connectivity
For example:
ping 8.8.8.8
A failed ping does not always prove the destination is unavailable because some systems intentionally block ICMP echo requests.
Test DNS Resolution
nslookup example.com
Display the Routing Table
route print
Display ARP/Neighbor Information
arp -a
These commands are useful for troubleshooting, but their results should be interpreted together rather than relying on a single test.
Common IP Address Problems
1. IP Address Conflict
Two devices are configured with the same address.
Possible solution: Review static addresses and DHCP reservations.
2. 169.254.x.x Address
The computer may not have received expected DHCP configuration.
Possible solution: Check physical connectivity, Wi-Fi, DHCP server, router, VLAN and adapter configuration.
3. Correct IP but No Internet
Check:
IP Address
Subnet Mask
Default Gateway
DNS
Routing
Firewall
ISP connectivity
4. Local Network Works but Websites Do Not Open
Test both IP connectivity and DNS resolution.
For example:
ping 8.8.8.8
nslookup example.com
If IP connectivity works but DNS lookups fail, investigate DNS configuration.
5. Port Forwarding Does Not Work
Check:
- Router port-forwarding configuration
- Destination device's private IP
- Local firewall
- Application listening port
- Double NAT
- CGNAT
- ISP restrictions
- Whether the service should safely be exposed at all
Do not disable the firewall simply to make port forwarding work. Identify the specific service and create only the required rules.
Important IP Address Security Practices
For home and business networks:
- Keep routers and firewalls updated.
- Change default administrator credentials.
- Use strong, unique passwords.
- Avoid exposing unnecessary services to the Internet.
- Restrict inbound firewall rules.
- Keep operating systems and applications patched.
- Use secure VPN or controlled remote-access solutions where appropriate.
- Enable MFA for services that support it.
- Document static IP assignments in business networks.
- Use DHCP reservations where appropriate.
- Segment sensitive devices when the network design requires it.
- Do not assume NAT alone provides complete security.
FAQ
What does IP stand for?
IP stands for Internet Protocol.
What is an IP address in simple words?
An IP address is a network address used to identify a network interface and help deliver data to the correct destination.
What is an example of an IP address?
An IPv4 example is:
192.168.1.10
An IPv6 example is:
2001:db8::10
What is the difference between IPv4 and IPv6?
IPv4 uses 32-bit addresses, while IPv6 uses 128-bit addresses. IPv6 provides a vastly larger address space.
Is 192.168.1.1 a public IP?
No. 192.168.1.1 belongs to the private 192.168.0.0/16 IPv4 range and is commonly used by routers on local networks.
Is 10.0.0.1 a private IP?
Yes. The entire 10.0.0.0/8 range is reserved for private IPv4 networks.
What does 127.0.0.1 mean?
127.0.0.1 is the commonly used IPv4 loopback address and refers to the local computer.
What does 169.254.x.x mean?
It is an IPv4 link-local address. On Windows, it commonly appears through APIPA when expected DHCP configuration cannot be obtained.
Can my IP address change?
Yes. Dynamically assigned IP addresses can change. Static addresses are intended to remain consistent.
Does restarting a router change the public IP?
Sometimes, but not necessarily. It depends on how the ISP assigns addresses and the duration of its leases or sessions.
Does every device have a different public IP?
Not necessarily. Multiple devices on a home or office IPv4 network commonly share public internet connectivity through NAT. CGNAT can even result in multiple customers sharing public IPv4 addresses.
Can I change my private IP address?
Yes. It can be changed manually, assigned differently by DHCP, or controlled through a DHCP reservation.
Is a static IP faster?
No. A static IP is not inherently faster than a dynamic IP. Its primary advantage is predictable addressing.
Can two computers have the same IP?
They should not normally use the same IPv4 address simultaneously on the same subnet. Doing so can cause an address conflict.
What is my router's IP address?
On Windows, run:
ipconfig
The Default Gateway is commonly the local IP address of your router.
Can an IP address reveal my home address?
Public IP geolocation may provide approximate location information, but it should not be considered reliable evidence of an exact street address.
What is the difference between an IP address and DNS?
An IP address identifies a network destination. DNS translates human-friendly domain names into IP addresses and provides other name-related records.
What is the difference between an IP address and a MAC address?
An IP address is used for logical network addressing and routing. A MAC address is primarily a link-layer identifier used on local network technologies.
Do I need a static public IP for Remote Desktop?
Not always. A static public IP can simplify certain remote-access configurations, but safer architectures may use VPNs, Remote Desktop Gateway, zero-trust access technologies, or other secure remote-access solutions. Directly exposing RDP to the Internet is generally not recommended.
Is an IP address permanent?
Not necessarily. Many IP addresses are dynamically assigned and can change.
FINAL RECOMMENDATION / CONCLUSION
An IP address is one of the fundamental building blocks of computer networking. It allows devices and networks to identify source and destination endpoints so IP packets can travel across local networks and the Internet.
For practical troubleshooting, remember these key distinctions:
IPv4 vs IPv6 describes the IP protocol/address format.
Public vs private describes where an address can be routed.
Static vs dynamic describes whether the address is intended to remain consistent or can be assigned automatically and change.
For Windows troubleshooting, ipconfig /all, Get-NetIPConfiguration, ping, nslookup, arp -a, and route print are useful starting tools. In business environments, administrators should also maintain sensible DHCP scopes, reservations, firewall rules, network documentation, and secure remote-access configurations.
Understanding IP addressing also makes related networking topics—including DNS, DHCP, NAT, subnetting, gateways, VPNs, firewalls, routing, and port forwarding—much easier to understand.
#IPAddress #InternetProtocol #IPv4 #IPv6 #PublicIP #PrivateIP #StaticIP #DynamicIP #Networking #ComputerNetworking #NetworkBasics #NetworkTroubleshooting #WindowsNetworking #Windows11 #WindowsServer #TCPIP #DHCP #DNS #NAT #CGNAT #SubnetMask #Subnetting #DefaultGateway #Router #RouterIP #LAN #WAN #LocalNetwork #NetworkSecurity #Firewall #VPN #RemoteDesktop #RDP #PortForwarding #APIPA #Loopback #Localhost #IPConflict #NetworkCommands #IPConfig #PowerShell #Ping #NSLookup #ARP #Routing #MACAddress #NetworkAdministrator #ITSupport #TechnicalSupport #Knowledgebase
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.