Opening ports in my droplet

I currently and trying to open port 6333 in my Ubuntu 18.04 droplets. Neither of them are listening on the port and I have already tried the commands:

sudo ufw allow 6333 sudo ufw allow 6333/tcp

Can anyone tell me what I am doing wrong?

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.

Hi @ryanjaycc,

Yes, as @kfsys says, the main thing is to have an active service that responds to that port.

Additionally, you can check your firewall status with the following command:

$ sudo ufw status verbose

If the firewall is not active, you can do it with:

$ sudo ufw enable

Hope that helps you,

Sergio Turpín

Site Moderator
Site Moderator badge
November 18, 2022

Hi @ryanjaycc,

For the ports to be opened there should be something listening on them. Basically, you can’t open a port and connect to it if there is no service/app listing on the same port.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up