Question

Problem with hosting node.js web-app

server running correctly but when i try to go to check on default domein its shows not found (Localy working my app ) - but on the domein not working i have bootstrap+node.js i have default port 8080 i changed from 3000 i think its banned but not can you help me with this ? anyone ?


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.

Bobby Iliev
Site Moderator
Site Moderator badge
October 8, 2024

Hi there,

Can you share a bit more information about your exact setup? Are you using the App Platform or are you running your Node.js app on a Droplet?

If this is running on a Droplet are you using Nginx? If so can you share your Nginx config?

If this is running on the App Platform, deploying a Node.js app is much simpler because the platform manages the server and networking configurations for you automatically.

Here’s how it works:

  • When you deploy your Node.js app on App Platform, it automatically handles things like port configuration and traffic routing. Your app will listen on port 8080 by default (or whatever port your app is configured to run on) and App Platform will map it to the public-facing domain for you.

  • You just need to ensure that your app binds to 0.0.0.0 instead of localhost, as App Platform expects the app to be accessible externally.

  • To set this up, you can follow this guide for deploying Node.js on App Platform: Deploy a Node.js App on App Platform.

Once deployed to the App Platform you don’t need to specify the port when accessing your site via the default domain name, this will already be mapped for you when you access your domain.

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more