open port 2053 for api

To connect to the api we need to open port 2053. Tell me, is it open for all my projects?

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.

Bobby Iliev
Site Moderator
Site Moderator badge
November 12, 2023

Hi there,

DigitalOcean is not blocking port 2053 on their end. What you might have to do is to check your own firewall on your Droplet and see if it is blocking that port.

To ensure port 2053 is open for your API on a DigitalOcean Droplet, follow these condensed steps:

  1. Check Your Service Binding:

    • Use netstat to verify that your service is listening on (which means it’s listening on all interfaces, including the public one):

      sudo netstat -tuln | grep 2053

      If your service is not listening on then it means that it will not be accessible from the public and you need to change your bind address.

  2. Configure Your Firewall:

    • If you’re using a firewall on your Droplet like ufw, you can check if the port is allowed and open it if necessary:

      sudo ufw status
      sudo ufw allow 2053

Let me know how it goes!



Site Moderator
Site Moderator badge
November 12, 2023

Heya @vladimirnikoluk,

If you are using a Droplet, you’ll need to open it manually from it. You can do that using the service ufw which comes by default on your Droplet.

Enable UFW

If UFW is not enabled, you can enable it with the following command:

sudo ufw enable

This command will activate the firewall. Note that enabling UFW may disrupt existing SSH connections if you have not set up a rule to allow SSH. To prevent being locked out, ensure that SSH is allowed:

sudo ufw allow ssh

Open Specific Port

To open port 2053, use the following command:

sudo ufw allow 2053

This will create a rule that allows traffic on port 2209. You can specify the protocol (TCP/UDP) if necessary:

sudo ufw allow 2209/tcp

Verify the Changes

After making these changes, it’s a good practice to check the status of UFW to ensure your rules are applied correctly:

sudo ufw status

his command will list all active rules, and you should see entries for SSH and port 2209.

Additional Notes

  • Always ensure that you have a rule to allow your SSH connection. Failing to do so can lock you out of your Droplet.
  • If you’re running services that need to be accessed externally (like a web server or database), make sure to allow their respective ports as well.
  • UFW operates on a first-match wins basis, so the order of the rules can be important.
  • If you need to delete a rule, you can use sudo ufw delete allow 2209.

By following these steps, you should be able to enable UFW and open port 2209 on your Droplet safely.

Try DigitalOcean for free

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

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel