Anonymous user
Private and Public IP Addresses: Difference between revisions
no edit summary
No edit summary Tags: Visual edit Mobile edit Mobile web edit |
No edit summary |
||
(12 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
A router or another Internet- capable machine will typically have two types of network interfaces: <i>internal</i> & <i>external</i>. | |||
[[File:Ieie.png|600px]] | |||
Any network interface must have an IP address in order to communicate inside or outside of the network. There are two types of IP addresses (in terms of accessibility, uniqueness & naming conventions): <b>public</b> and <b>private</b>. | |||
==Public IP address== | |||
An <b>IP address</b> is a number used to identify a host on an IP (Internet Protocol) network. In order to successfully communicate on the Internet or any other computer network, a machine must have a network interface and an IP address assigned to it that is unique to that network. | |||
A | A <b>public</b> IP address is an IP address that is unique to the entire Internet. Public IPs can be accessed globally; therefore, they are often used by publicly accessible entities such as websites, DNS and VPN servers, etc. | ||
The number of different public IPv4 addresses is limited and they are usually assigned to a device by an Internet Service Provider (ISP). | |||
===Static IP address=== | ===Static IP address=== | ||
Line 35: | Line 29: | ||
[[File:Dip.png|1100px]] | [[File:Dip.png|1100px]] | ||
From the example above we can see that in case of dynamic IP addresses the ISP provides the routers with private WAN IP addresses that are then "translated" into public IP addresses when connecting to | From the example above we can see that in case of dynamic IP addresses the ISP provides the routers with private WAN IP addresses that are then "translated" into public IP addresses when connecting to remote hosts on the internet. The main difference from static IP addresses is that the dynamic IPs provided by the ISP are not permanent. They will change when the router disconnects and reconnects, re-registers to a network operator or, in some cases, the ISP might update the IP addresses periodically. | ||
Speaking in terms of remote access, dynamic IPs complicate the situation because there is no way to tell what IP address a remote has at any given time. While remote access is more complicated with dynamic IP addresses, it is not impossible and can be achieved using the | Speaking in terms of remote access, dynamic IPs complicate the situation because there is no way to tell what IP address a remote has at any given time. While remote access is more complicated with dynamic IP addresses, it is not impossible and can be achieved using the Dynamic DNS service ('''Services → Dynamic DNS'''). '''DNS''' or '''Domain Name Service''' provides names (such as www.google.com, www.facebook.com) for IP addresses. Dynamic DNS periodically rebinds IP addresses to a hostname. Therefore, when using Dynamic DNS you would only have to remember the hostname to reach a specific device at any given time even though its IP address might change from time to time. | ||
===Shared IPs=== | ===Shared IPs=== | ||
Line 49: | Line 43: | ||
However, shared IPs have a huge disadvantage since an owner of a device or website is no longer the only entity responsible for their IP address. For example, if one the multiple users of the same IP address commits an online felony of some sort and the IP address gets blocked, all of the users using that IP will get blocked as well. | However, shared IPs have a huge disadvantage since an owner of a device or website is no longer the only entity responsible for their IP address. For example, if one the multiple users of the same IP address commits an online felony of some sort and the IP address gets blocked, all of the users using that IP will get blocked as well. | ||
You can find more information on Network Address Translation (NAT) ''' | You can find more information on Network Address Translation (NAT) '''here'''. | ||
==Private IP address== | ==Private IP address== | ||
Line 121: | Line 115: | ||
*https://www.internic.net/ | *https://www.internic.net/ | ||
[[Category: | [[Category:Networking]] |