Question

How to open the port 25565 on Linux droplet?

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 https://www.yougetsignal.com/tools/open-ports/ it says all ports are closed. I’m checking using the public IP that came with the droplet.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

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?

Regards, Alex