Wherever I try to access my Node.js application on my Droplet at http://161.35.86.63/, I keep getting this error back:
net::ERR_CONNECTION_REFUSED
Where do you think I’m making a mistake?
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!
Hi @hakkigokdere,
When you open load a website/ip of your server by default your server tries to use port 80 or 443 depending on the protocol you are using http/https. If nothing is listening on that port you’ll get a ERR_CONNECTION_REFUSED.
My guess would be that you have Node running on another port. To check which port this is SSH to your droplet
ssh root@YourDropletIP
Once you have SSHed, run the following command :
netstat -tulpen
It will output information about all services currently running and listening to a port. Find Node and check the port, most probably it will be 3000(just a guess). Once you see the port, let’s say it’s 3000, you can open load it via the browser like http://161.35.86.63:3000 and you’ll get your content.
Regards, KDSys
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.