What are the range of public and private ip address?
Answers:
See if this answers your question:
http://www.jpsdomain.org/networking/nat.html
Other answers:
Private:
127.0.*.*
192.168.*.*
10.*.*.*
Public: everything else up to 254 in every octave.
This is just a guess, but I'm guessing 1.0.1.1 to 255.255.255.255 is the range
192.168.*.*
172.16.*.*
10.*.*.*
and the rest of IPs are public up to 254.254.254.254
By private it just means the addresses will not be routed by Internet routers. You can use these in your own internal network and you have to NAT them to a public address to connect to the Internet.
The designated private IP subnets are:
10.x.x.x
172.16.x.x
192.168.x.x
127.0.0.1 is the local loopback address, you cannot use it to communicate with other computers, only your own PC.
Amended: 169.254.x.x is not really a private address space it is defined as:
This is the "link local" block. It is allocated for communication between hosts on a single link. Hosts obtain these addresses by auto-configuration, such as when a DHCP server may not be found.
You should not use this as a private space but you can if you choose to. Actually behind a NAT router you could use any public IP subnet if you choose to, you just can't let it connect directly to the Internet, but it might be confusing.
Actually...none of those are entirely correct:
10.0.0.0 - 10.255.255.255 (10.0.0.0/8) Class A
172.16.0.0 - 172.31.255.255 (172.16.0.0/12) 16 Class Bs
192.168.0.0 - 192.168.255.255 (192.168.0.0/16) 256 Class Cs
169.254.0.0 - 169.254.255.255 (169.254.0.0/16) 256 Class Cs
Are the currently designated private networks, with 127.0.0.1 as a loopback.