By itsanujb
Hi, I am unable to get my domain name connected to my droplet which is hosting an angular 2 application. I am able to ping the domain name and see the reply with proper ip address in it. I am also able to open the application with ip address like http://xxx.xxx.xx.x:8080 but trying with my domain name like http://mydomain.com returns error -
This site can’t be reached
refused to connect.
Any help is much appreciated.
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!
Supply the port with your domain. http://mydomain.com:8080
without specifying the port, your browser will try to connect to port 80
Can you use the following command to start the angular app?
ng serve --host mydomain.com --port 80
This will start your app on the droplet on port 80. It will also start with the correct hostname information too.
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.