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!
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.
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
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
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.
sudo ufw delete allow 2209.By following these steps, you should be able to enable UFW and open port 2209 on your Droplet safely.
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 on 0.0.0.0:2053 (which means it’s listening on all interfaces, including the public one):
sudo netstat -tuln | grep 2053
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:
sudo ufw status
sudo ufw allow 2053
Let me know how it goes!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.