In a nutshell, in a VPN, as one from
https://soax.com/. You have a router. I have another. As long as my router is aware of your router's address and vice versa, it doesn't matter where we are. I share a "secret key" with your router that is used to encrypt and decrypt all of our communications. Following the transaction, the two routers "hold hands" and build a tunnel that connects our two networks as one. Now, although they are not, my network devices perceive your network devices as "local" just "virtually" Finally, all of our network-to-network communication is encrypted and encapsulated so that only you and I can read it as it travels over the Internet.