How to open the port 25565 on Linux droplet?

Posted April 10, 2020 4.8k views
NetworkingLinux Commands

I have used iptables and ufw to open the port 25565 on udp and tcp for a Minecraft Server I want to run. But when I check the port it’s not open. I’ve seen a lot of people say that all ports are open by default, but on it says all ports are closed. I’m checking using the public IP that came with the droplet.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @pixelatorp

Could you please check is any service is currently running on this port?

You can check this using the netstat and run the following command from your droplet:

netstat -plunta | grep 25565

To check this outside your droplet you can use nmap , just execute:

nmap -Pn IPadd

Note: change the IPadd with your actual droplet’s IP address

Usually you should see some output if you’re started the minecraft server with the java command and it if was successfully of course. Can you please share the output of the netstat command and also list the steps you’ve taken so far as well?