Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I set my web domain to go to a specific port?

I have made a super duper simple Node js app with express js. You can see it at xavierfont.com:8080 … that is the problem, you need to type the port…

I have the Node JS API hosted on a Ubuntu VM on Digital Ocean… What I did was gained accesed with the Open SSH from my computer, downloaded Node, NPM, and Express, wrote the code on VIM, and ran node app.js and my app runs on the specified port of 8080.

Cool, I then set up the DNS Managment Record of type "A" with Cloudflare, who also hosts my domain name, to direct to my the public IP of my Digital Ocean server.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

My DNS managment records in Cloudflare

What do I do? This is my first time deploying an app, I justt wanna go to xavierfont.com and get an HTML page.

>Solution :

You are going to have to host it on port 80 for HTTP or 443 for HTTPS (if you have an SSL). Otherwise, you cant redirect it to a different port without typing it into the url.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading