Question

Issue with Droplet connecting to GODaddy Domain name

Currently have a droplet set up as a Rserver with R and Rshiny installed to run a small shiny app. This works perfectly with the IPv4 address and I am currently using nginx as the http web server.

I have a custom domain and have configured the name servers within my domain purchaser to use the digitalocean ones. The name servers were completely propogated with the dnschecker, but im still experiencing ERR_CONNECTION_REFUSED during domain connection and not sure why.

I have checked countless answers to this question, theres no firewall so dont think its a port problem?

Any advice would be very helpful.


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
March 20, 2025

Hey there 👋

If the IP works but the domain shows ERR_CONNECTION_REFUSED, it’s likely an Nginx config issue, not DNS.

Make sure you’ve added a proper server block for your domain in Nginx, something like:

server {
    server_name yourdomain.com;
    root /path/to/your/app;
    ...
}

Also, make sure Nginx has been reloaded after changes:

sudo systemctl reload nginx

You can double-check if Nginx is listening with:

sudo netstat -tulnp | grep nginx

If you’d like, feel free to share your Nginx config here, happy to take a quick look.

- Bobby

alexdo
Site Moderator
Site Moderator badge
March 31, 2025

Heya,

You can confirm your domain resolves to your Droplet’s IP:

dig yourdomain.com +short

It should return the correct IPv4 address. If not, the issue is DNS-related (even if propagation “seems” done).

Regard

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.