fastest way to tunnel my locally-ran minecraft server to my vps to make it publically accessible?
Hello, I am running a minecraft server locally which i would like to be accessible by my friends, i have an ovh vps with a public ip address, and i would like to use tunneling to do so. But i have no idea how i should do it, any recommendations?
26 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by batmanatgotham#0
do u need to tunnel or are you just trying to hide your ip?
cgnat so i need to
We may have bad news for you :C
Open your router's configuration interface. Somewhere you'll see something like 'external' or 'public' IP.
If your external IP is in one of the following ranges, you're basically screwed as long as portforwards go:
- 10.0.0.0/8
- 172.16.0.0/20
- 192.168.0.0/16
- 100.64.0.0/10
- any IPv6 address/range - This shouldn't be a problem, but Minecraft's IPv6 support is still rather quirky. You're at your own but we're happy if you share your experience.
You should ask your ISP for a public and IPv4 address (but this may cost you money).
NB: your internal IP should and most probably will be in one of the first three ranges, don't mix them up
Admincraft Canned Responses
sorry just wanted to read that real quick
Why not try ngrok?
would prefer to use a custom vps, since its cheaper and kind of gives more freedom
wait wym
?
ngrok is just for the tunnel
yeah, and i want to use a vps to tunnel with wireguard
ngrok is almost 5x more expensive than a vps
also i already have a vps so
ngrok has a free plan.. but ok
so are you asking how to use wireguard? because your question was about how to tunnel your minecraft server to your vps in general
i mean, i am fine with using anything other than wireguard, its not a hard necessity
pretty sure that doesnt have a permanent link/whatever
it comes with its own domain, but iirc you can't use a custom domain (CNAME cross user banned)
well if you want to use wireguard, start by installing it on your VPS
i already have
and downloading the client version on your PC
So, hello, i am messing around with the guide, and this is my config
(client)
(server)
and i can ping from both sides, attach ports and listen through netcat and telnet from both sides, except the port 25565, that doesnt work for some reason.
also, if i run the minecraft server (or anything really) on port 25565, and try to connect to vps's ip:25565, that doesnt work, so i am guessing forwarding isnt happening?
i have the ports opened and ipv4 forwarding enabled in sysctl.conf, idk what else i can do
(copy pasted, dont mind)
can you do:
sudo iptables -t nat -L -v
to see if the iptables actually applied
also wouldn't hurt to restart wireguard (assuming you haven't already after changing the config)
it seems to be
already done it
and (sorry if this is a stupid question) are you sure ip forwarding is enabled?
also wouldn't hurt to check wireguard logs:
journalctl -u wg-quick@wg0
on the server? it is,
also not calling you out but would be worth it to double check
ufw status
client: the 8 am one
server: the 2 am one
i dont see anything
its fine, i can very stupid at times, no need to mention that, i get you are not being rude.
its allowed on the server
on my local machine its enabled aswell
yeah i've hit about the limit of my knowledge of this shit, sorry dude
was hoping something would shout at me, but i'm sure with what you provided someone else will see what's wrong
thanks for your help tho