• 9 Posts
  • 95 Comments
Joined 2 years ago
cake
Cake day: June 5th, 2023

help-circle




  • Not exactly sure, but playing with setting up your own VPN will give you an idea of it.

    Essentially, the VPN is run on a remote server. When you connect to the VPN, your traffic gets masqueraded out through the remote server, and replies get natted back to you. If you tried setting up a webserver on your computer and then accessing the webserver on the VPN server IP, it wouldn’t work, because the request coming in to the VPN server port would by default just reach the VPN server at that port.

    This is where port forwarding comes in – if the VPN server allows you to port forward, you can set port X on the VPN server to go to port Y on your router (which would likely also have to port forward on your router to get to your computer).