There is any port closed by default?

I’ve been working on getting a Cardano Stake Pool up and running for a while now, but for some reason I can’t get the database to sync 100%. I wanted to know if Digital Ocean blocks any ports or puts any restrictions that I’m not aware of?


Submit an 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.

Hi @leonardoloisa,

By default, DigitalOcean does not restrict ports except 25 and that’s only for new accounts.

Usually, when having issues with a port there are due to about three to four reasons.

  • Your Firewall is not allowing the external connection. What you can do is, either allow the PORT you want to use or allow the IP you are trying to reach to your Firewall

  • The recipient Firewall is rejecting the connection. It can be either due to a closed port or because your IP is being rejected. Here you can try and use nmap DestinationIP from your Droplet to check if the port is visible.

  • There is nothing listening on the port you are using on the Destination IP. When there is noting listening on a port, by nothing listening to a port, I mean some kind of service, the port even if it’s opened will appear as closed/non-reachable.

Hello, @leonardoloisa

The only issue you might get with a new droplet is to have port 25 disabled, but this should apply only for new accounts.

If you’re trying to connect on a certain port you can also use telnet to determine if the port is accepting connections or not. Keep in mind that you need to have a service listening on that port if you’re doing incoming connections or have a socket waiting for connections as well. If you’re doing outgoing connections you should not face any restrictions.

Regards, Alex