How I can run a coder-server instance and test a express.js app in the same droplet?

Hi, I’ve deployed a coder-server instance in a droplet, this is in my opinion the best way to have an cloud-based dev environment cause we can run VSCode on the web, everything ok whit coder-server.

My problem comes when I try to run a sample-app whit node and express, the app runs on port 3000 ok apparently, but seems that the droplet doesn’t have open that port and in consequence the browser can’t reach the express.js server.

Can somebody please help me to solve this situation?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


As the coder-server image from the marketplace uses Ubuntu, you could try opening port 3000 through the default Ubuntu firewall. First check if the firewall is active:

sudo ufw status

If the firewall is active, then you can open the port with:

sudo ufw allow 3000

For more information, you could take a look at this article here:

Hope that this helps! Regards, Bobby