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?
Thanks.
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!
Hello,
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:
https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
Hope that this helps! Regards, 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.