i run rails s -p 7777 command but my ip close this port
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.
Maybe you activated the firewall on your droplet make sure it is disabled with sudo ufw status
sudo ufw status
If it is enabled just allow connections to port 7777 using sudo ufw allow 7777
sudo ufw allow 7777
If you are using firewall service from DO make sure you added a rule to allow incoming traffic to port 7777.
I hope this helps
Join 1M+ other developers and: