Question

How do I get my server to run forever publicly?

I have a node app and I can run it on localhost as [IP ADDRESS]:3000, but how do I get it to run forever just as [IP ADDRESS]? A little confused on how this works


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.

You can use apache, nginx, haproxy, or the like and reverse proxy from [IP ADDRESS] -> [INTERNAL IP]:3000 (With Internal IP being locally - 127.0.0.1). You can also change the port of your app to make it use 80 so when someone enters the IP (or domain if its an A record) it will go to the web page of your app without having to define the port within the URL

Browsers default to port 80 for HTTP and 443 for HTTPS, changing your server’s port (whether it’s Node.js or something else) to port 80 should do the trick.

Great, thanks for the recommendation and help!