Hi all,
I’m giving this a go as my last resort. It seems Droplets do not have the option of opening a custom TCP port to external applications. I can open the port internally, but no way to access it externally.
I’ve tried everything I know, including a couple of DO tutorials that cover things that simply don’t work.
DigitalOcean have obviously done something here, block ports for some reason, given the number of posts and lack of clear answers.
Is it a money thing? Will the block ‘go away’ if I pay more?
Any insight would be welcome. If that is just ‘forget it, it’s not going to happen here’ fair enough. I’ve lost a day, but better than losing 2 or 3.
Massively disappoint with DO. It could be a great service. But this abstraction of TCP ports, which you only discover once you’d installed everything, is not fun or fair.
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.
Hey Mike! 👋
I saw your earlier message and updated my response there too, but I wanted to follow up here to clear things up.
First off, I can assure you this isn’t a money thing, DigitalOcean doesn’t charge extra to open TCP ports on Droplets.
Droplets give you full control over your server, and opening ports is definitely possible. It just comes down to a couple of key configurations that I mentioned in my previous reply:
Make sure your application is actually running and listening on the port you want to open. Also, ensure it’s bound to
0.0.0.0
(notlocalhost
) to accept external connections. Example for a Node.js app:If you’re using DigitalOcean Cloud Firewalls, confirm that the port is allowed for inbound traffic. If you’re using a firewall on the Droplet like
ufw
, you can open the port like this:No firewall? Then once your service is running, it should be accessible.
Run this command to check if the port is being listened on:
If it shows up, the service is listening. You can then test the port externally with:
On another note, in rare cases, your local network or ISP might block certain ports. Testing from a different network or using a VPN could rule this out.
Droplets give you complete freedom over networking, so there are no hidden restrictions here.
Let me know how it goes! If it is still not working, feel free to share the output of the
netstat
command here.- Bobby
Heya,
Are you sure anything is listening on that port? Opening port but nothing listening on that port will make it appear as closed from the outside.
Basically, you need to have something listen to that port in order to open it to the outside world.