I have a Next.js server. It’s up and running, and I know because when I do wget myserveripaddress:30002
from the server itself, I get a (valid) index.html file.
However, when I do the exact same thing from my own machine (or use my browser), the request times out. It’s like there’s a firewall that I never setup blocking things.
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!
Accepted Answer
It turns out there is a firewall installed by default. I was able to open it up (thanks to a little help from Digital Ocean support) with the command:
sudo ufw allow 3002
P.S. It was working a week or two ago. I came back to it (after not changing anything, and certainly not installing a firewall) and found it not working.
Also I tried restarting the machine; it didn’t help.
Are you using a domain? If it is, see if your domain is pinging from your Droplet:
- ping yourdomain.com
Additionally, enter your Droplet via SSH and see in your logs if anything is being blocked.
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.