IPv4 Network IP Address – How to Tell if an IPv4 Address is Public or Private?

ip addressipv4Networknetworking

I've read the below thing, in a website.

According to standards set forth in Internet Engineering Task Force
(IETF) document RFC-1918 , the following IPv4 address ranges are
reserved by the IANA for private internets, and are not publicly
routable on the global internet: IP addresses: – IP addresses: – IP addresses: –

My doubt is

  1. Should private addresses be only from the above mentioned ip range or can they have any ip address range?
  2. Can public ip address be from the above mentioned ip addresses ? If so then will that be valid in the internet?
  3. Can I tell 100% by looking at the ip address as they're private if they fall in the above ip address range?

Best Answer

1 - Yes, to do things properly you should only use IP addresses within those 3 networks as private addresses.

2 - No, those addresses are not routable on the Internet, any decent internet service provider (ISP) will drop any packet that has one of this addresses as either source or destination.

3 - yes.

You can read the whole RFC1918 here (it is short).

Related Topic