Question

Cannot access my app on port non-standard (on a dropplet)

Hello, I wanted to know if this was normal or not. I have a nginx server on port 64297 and can’t access it from my computer navigator. I can access apps on port 80 or 443 wihtout any problem. I did all the networking rules, and I’m sure it works since I can access it from another droplet in the same private network. Does anyone already experienced this or have an idea on how to solve it ? (I can’t change port 64297, all the standard port are already taken). I can provide further informations if needed.


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.

alexdo
Site Moderator
Site Moderator badge
November 22, 2023

Heya,

The Firewall configuration seems fine, you can also try to connect from another device as this might be an connectivity issue from your local machine itself.

Also you can examine the Nginx error logs for any additional information:

  1. sudo tail -f /var/log/nginx/error.log

Regards

is the public firewall configured for that port?

KFSys
Site Moderator
Site Moderator badge
November 21, 2023

Heya @e8a683043f184a208dde326b6d37ff,

Ensure that you have allowed the port on your firewall for external use.

Additionally, make sure Nginx is actually listening on that port and you can see it working. You can use:

nestat -tulpen | grep nginx

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

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

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel