How to Use VPN for LAN Gaming

1. Download OpenVPN

Windows: Download here
Linux (Debian/Ubuntu): sudo apt install openvpn

2. Import Config to OpenVPN

On Windows, import the .ovpn file into the OpenVPN GUI.
On Linux, run: sudo openvpn --config itsfin3-open-server.ovpn

3. Check Assigned VPN IP

Use the following command to see your VPN IP:
ip a (Linux)
or check the OpenVPN GUI details on Windows.

4. Launch Your Game Server

Start your game server and note the port it's running on.

5. Open the Port on Your Local Machine

Make sure your firewall allows incoming connections on the game server port.
Example for Linux (UFW): sudo ufw allow 25565

6. Your Friend Can Now Join

Give them the VPN-assigned IP and port. They can connect to your game as if on the same LAN.

P.S. Useful Commands