Comment on Minecraft server and reverse proxy
bjoern_tantau@swg-empire.de 2 weeks ago
NPM won’t help you here. As you said, it’s only for http. You will have to set up port forwarding in your router. But as far as I recall Minecraft changes its port with every game. So you could either change that in your router every time you start another game.
But it would be better (for security as well) to set up a VPN. Many routers actually have that built in.
That is, if your goal is to have your Minecraft server reachable through the internet.
For DNS you will need a Dynamic DNS service to let the name always point to your public IP. For this as well many routers have built-in functionality. Maybe even a preferred service.
Dust0741@lemmy.world 2 weeks ago
With Crafty you can bind a specific port.
I use tailscale for public access, and have set it up so tailscale users can access the domain.
I guess what I’m asking for is NPM but for tcp.
catloaf@lemm.ee 2 weeks ago
Regular nginx does this just fine docs.nginx.com/nginx/…/tcp-udp-load-balancer/
Keep in mind that you can’t route tcp by hostname, because hostname is not a property of tcp. It only knows IP addresses. Host routing requires a protocol like HTTP.
bjoern_tantau@swg-empire.de 2 weeks ago
Port forwarding is what you’re looking for. You almost certainly can configure that in your router. You tell it what the port in the outside should be and to what IP and port in your LAN it should go.