By Tiga Wu
hi i’m new to this, when i’m running my application, i can’t access my application with public ip and the port number, but i can successfully access after reverse proxying with nginx, how could i directly access the app?
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!
It could be that there is a firewall blocking external connections via that specific port, here are some ways to debug:
First - confirm that the port is definitely blocked externally by running telnet YOUR_IP_ADDRESS THE_PORT_NUMBER from the command line. For example: telnet 123.45.123.32 80 if you get a response:
Trying 123.45.123.32...
Connected to123.45.123.32.
Escape character is '^]'.
then the port is actually open and the problem might be on your local device.
Still not solved? Check if it is a software firewall, running on your Droplet:
sudo ufw status verbose (full reference here)sudo iptables -nL you will see a list of any iptables rules that are blocking certain ports. If you just see:Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
it means no ports are blocked.
Still not solved? Check if there’s a DigitalOcean cloud firewall blocking external connections: Go to your Droplet’s page in the Control Panel and click on the Networking tab. Are there any active firewall rules listed? Read more about Cloud Firewalls here
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.