Hosting a Minecraft server on a VPN client

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
codyjames34526
OpenVpn Newbie
Posts: 1
Joined: Tue May 31, 2022 12:32 pm

Hosting a Minecraft server on a VPN client

Post by codyjames34526 » Tue May 31, 2022 12:50 pm

I have a working Minecraft server that runs on a laptop connected to my home LAN with port forwarding to WAN so that others can join using my public IP address. I wanted to have a way to run this server on the same laptop even when away from home and have people be able to connect using the same IP address. Using my AX88U as a VPN server, I am able to connect to my home LAN and ping devices on it, but I cannot figure out how to set up port forwarding so that port 25565 (Minecraft port) is forwarded from WAN to the VPN server, and then to my laptop. LAN uses a 192.168.50.0/24 subnet, VPN clients use a 10.8.0.0/24 subnet. Sorry for being a noob.

Client Config

remote [public IP here] 443
float
nobind
proto tcp-client
dev tun
sndbuf 0
rcvbuf 0
keepalive 10 30
client
auth-user-pass
auth SHA1
auth-nocache
data-ciphers-fallback 'AES-128-CBC'
remote-cert-tls server
redirect-gateway def1

Post Reply