r/linux4noobs • u/Lolmin290208 • Nov 15 '25
networking Ubuntu pc refuses to work as server
I have this Dell Optiplex that now has ran almost every linux distro, now Ubuntu because it is "supported" by mojang. I want it to function as a home server that can host Minecraft dedicated servers, be a proxy server, etc. But it never works with anything. Currently I am trying to setup a bedrock server. On my windows pc it works perfectly: I forward 19132 udp and tcp and everyone outside can connect to it with my pucblic ip, even I can. But when I run a dedicated bedrock server on the Ubuntu machine, and follow every little step to be sure, nobody at all can connect. Sometimes not even me via LAN. And. I. Don't. Understand. Why. Firewall is off (ufw is, iptables too I think). All ports are forwarded, but you can't really verify the shitty udp ports the bedrock server uses with a port checker, you have to use this site. And as I said I first encountered this on Debian, but on every other distro I have the exact same problem. And I am at a complete loss.
2
u/Prestigious_Wall529 Nov 15 '25
On some ISP routers, you can set one port or system to be in a DMZ or to allow a smart host. Terminology differs.
Work with static and reserved IP addresses for your sanity.
See if the IP address that was on the Windows box gets it working on the Linux box. Obviously two systems can't have the same IP address.
1
u/UltraChip Nov 16 '25
Run
to verify the server software is actually listening on the port(s) and interfaces you expect it to.
1
u/DimensionTime Nov 16 '25
Are you sure you want to expose your pc to the internet?
1
u/michaelpaoli Nov 16 '25
Then you do the relevant troubleshooting and get it corrected - or get someone who can.
Shouldn't be a huge deal. So, can, e.g. use tools/programs like ss to determine what's listening, look at traffic/what's connected, e.g. also tcpdump. The traceroute that's typically (available) on Linux can also do tracroute to a specific port number, and can also use TCP rather than UDP if/when one wants to do that. So, there are answers there, do the troubleshooting to figure it out and fix it. If it works on your "PC" but not Linux, well, then clearly something with your Linux setup. Get it figured out and corrected. I've been running Linux for well over a quarter century - and really don't have issues with running servers on Linux. So, start doing some troubleshooting, get to the bottom of it, and fix it.