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.
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.
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.
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.
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.
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.