4

I was wondering about the IPv4 problem and thought about one of the solutions where endpoints do not have their own public ip address, but rather an address only used within the VPN and a mapping by the router.

These local addresses fall in the range of 192.168.x.x, and in my experience mostly 192.168.0.x. But what happens to the public ip addresses in this range? Who owns them, and what are they used for? Can they even be practically used, and if they can, how does the endpoint know whether to connect to a local address or to the public one?

I tried to ping random addresses from the range, but none of them returned a response (except of course endpoints on my local network). So I would suspect the range is not used publicly. But isn't that a wast of the addresses?

1
  • 1
    Please read RFC1918
    – Ricky
    Oct 9, 2015 at 19:54

2 Answers 2

6

The three private address ranges, and many other address ranges, are not allowed to be routed on the Internet. IANA owns the private address ranges and has allowed anyone to use them as they wish, as long as they are not routed on the Internet. They are simply network addresses used the same way as public addresses, except that any Internet provider will drop any packets with a private address.

Your pings to private addresses on the Internet never made it to the Internet since your provider dropped them at the PE.

These private addresses actually save addresses since everyone can reuse the same addresses internally rather than needing unique public addresses. IPv4 would have been exhausted many years ago if we didn't have private addresses.

0
0

Well I actually have a raspberry pi that has a public ip that starts with 192.168. My friend was able to ssh in there meaning that it is indeed a public ip

1
  • 3
    I'm afraid you are mistaken. There simply are no public IP address in the range 192.168.0.0/16; that address range is not routed over the Internet. If your friend is connecting, they are either connecting via a NATted address, or you have some other, non-Internet connection. You can read RFC1918 for more information about private addresses.
    – Ron Trunk
    Sep 8, 2020 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.