Minecraft server through VPN

Hi, I’m going to get a PC that I want to use to host my Minecraft Server.
The only downside is that I don’t want people to know my IP Address, so I was planning on buying a small VPS Server in Canada, set up WireGuard on that VPS, and connect my Server PC to that WireGuard server, so I can have a Canada IP.

I live in Spain currently, if I host my server with a VPN on a country far away, will there be any latency issue? Because I also want the server to be in Canada (with the VPN) so South American players can get low ping.

Thanks for being a part of /r/Admincraft!
We’d love it if you also joined us on Discord!

^(Join thousands of other Minecraft administrators for real-time discussion of all things related to running a quality server.)

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

Your IP address is public regardless, that’s why it’s called a public IP address. For your question, yes latency will increase. Anything that veers from a direct path will increase it.

This feels VERY much like an XY Problem.

Forget the VPN for a second, OP. What is the problem you are trying to solve? Why are you selfhosting instead of renting a server? Why do you want the server in Canada if you’re in Spain. Forget everything about the solutions you’ve come up with, and tell us about the core problem that you started out by “solving” with a vpn.

, if I host my server with a VPN on a country far away, will there be any latency issue

Yes. Latency is essentially how far the data has to travel, slapping the proxy somewhere else means that they’re connecting to that, which then forwards traffic to you.

At that point why not just get hosting?

I am currently doing that exact thing, though I am using Tailscale (which does use Wireguard internally I’m pretty sure)

My reasoning is because my ISP doesn’t allow Port Forwarding (and I don’t want to deal with dynamic IPs anyways)

Your latency is simply going to just be latency between your PC and VPS plus the latency between the VPS and your players.

In my case, since my PC and my players are in Indonesia while my VPS in Singapore, the latency is 40ms, which is double the usual Indonesia-Singapore latency from my experience, so it makes sense.

If your PC is in Spain, your VPS is in Canada, and your players in South America, then your latency will simply be the total latency jumping between all those points. Latency Spain<->Canada + Latency Canada<->South America

TCPShield and NeoProtect are good services to block people from having access to your IP, it also dissipates and mitigates DDOS attacks. Might be what you’re looking for, even though it’s not specifically a VPN.

Give a look at TCPShield. It’s a “proxy” plugin(not a vpn). It will add a slight bit of latency but still very manageable.

Why would you use a full on VPN? You can just use a proxy. There’s a few paid options if I remember correctly there’s TCPShield and I’m sure some others. But if you’re like me and like doing stuff on your own then just rent a small VPS slap NGINX on it and use the stream_core_module and point to your actual ip. Then all you do is hand out the ip of the VPS and let the magic happen.

Use Tailscale. I use it and it works great. You sign up for a free account. Install the vpn agents on any device. iOS Linux windows and they are all in the same vpn network. I mainly use it to access my Linux consoles but it should be good to join an mc server. You get a Tailscale ip that users can use to join the server.

Use TCPShield, thats easier than WireGuard

save yourself the time and use a cloudflare tunnel, is exactly what you want without a vpn

there’s no way his PC’s ip could be exposed to players if entrypoint would be on tunneled through WG external server

This is a very important question to answer. The reason why you should work out why you want the VPN is, from a security standpoint they offer a lot less than you think - no matter what the marketing material says. Tom Scott’s video on this goes into a lot.of.detail on why VPNs aren’t the magical security and privacy unicorn people think they are.

The TL;DR is if you’re wanting to use the VPN because you “don’t want to get hacked”, a VPN is marginally better than flushing your money down the toilet - marginally. There is far more to security than just paying for a VPN and you would be better off spending time doing that than pretending a VPN is going to magically fix everything.

As I said, I also want the server to be in Canada so South American players can get low ping, because most of my playerbase is from South America and Ping time from South America to Spain be really high.

But it’s not only the proxy that will have a VPN, it’s the whole bungeecord network.

I pay $1 a month for a vps that runs velocity and tunnels the connection thourgh tailscale to my home server, definitly cheaper

learning experience?

:index_pointing_up::nerd_face: Technically you are limited by the resistance of the fibres as light travels about 2/3 of the speed of light through fibre optic cables.