To connect to the api we need to open port 2053. Tell me, is it open for all my projects?
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!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
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:
Check Your Service Binding:
Use
netstat
to verify that your service is listening on0.0.0.0:2053
(which means it’s listening on all interfaces, including the public one):If your service is not listening on
0.0.0.0
then it means that it will not be accessible from the public and you need to change your bind address.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:Let me know how it goes!
Best,
Bobby
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:
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:
Open Specific Port
To open port 2053, use the following command:
This will create a rule that allows traffic on port 2209. You can specify the protocol (TCP/UDP) if necessary:
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:
his command will list all active rules, and you should see entries for SSH and port 2209.
Additional Notes
sudo ufw delete allow 2209
.By following these steps, you should be able to enable UFW and open port 2209 on your Droplet safely.