My friend told me, that without public IP of the workstations, I can access machines remotely. But I'm a rather confused in using VPN, I don't understand how can it manage to connect. I saw this video about VPN's mechanism, but he didn't mentioned building them.
The situation is:
- I have an office, with its workstations. Sure, the computers are connected to the Internet.
- I have computers at home, and my other working places with Internet access.
How can I access the office machines with VPN without server with public IP from everywhere? Can you show me a complete tutorial?
(I saw TeamViewer, Hamachi, but if it possible, I want to use a private VPN.)
Thank you very much!
Any computer on the internet can be addressed by its IP address. Those IP address are commonly called "public IP address". Internet servers have public IP addresses.
Nowadays, desktop or laptop computers are typically not connected to the internet directly. They have internet access through a router using a technique called IP masquerading (or NAT). Using this scheme, computers get assigned a "local IP address" such as 192.168.., 172.16.. or 10...*. Those addresses are invalid on the internet. Only the router has a valid public IP address.
A client with a local IP address (behind a router) can always establish an connection with a server using a public address (directly connected to the internet). That's why web browsing works perfectly.
However, if both parties are behind such a router, i.e. none of the computers has a public IP address , establishing a connection is impossible.
You have several options:
Please research the network situation of your office. Find out, whether your IP address is public and, if not, who controls the router. Then, ask whether port forwarding or a VPN is an option they can provide (or consult the manual if you have access to the router).
The solution a server based VPN programe, eg. Neorouter (cross platform on server and client side - free for your own hosted server service) or TeamView (VPN & Remote Control - free for non-commercial use).
There is some methods that allow to connect two clients behind some type of NAT-s.
In short NAT assigns temporary public address and port to client, when connection is established. In some cases if another client knows that temporary port, it could connect through it.
Check out STUN, TURN and ICE.
You might be interested in VPN over the Internet without public IP when all the nodes are behind the NAT. Those connections are called F2F (Friend to Friend) or P2PVPN (Point to Point VPN). They might be fully decentralized or may require an initial connection broker like XMPP Jabber or Google Hangout (required only at the time of establishing connections between end hosts). In both types of connections, traffic goes directly from host to host.
The list of available apps for F2F / P2PVPN.