Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1479  / 3 Years ago, wed, november 24, 2021, 3:05:27

I am trying to access a rails server running at 0.0.0.0:3000 on my computer from a tablet on the same wifi.



I can connect to regular webserver :80, but somehow can't get to the :3000.



I tried:



sudo ufw enable 3000


but that didn't help.


More From » 12.04

 Answers
4

The correct command to open that port would be



$ sudo ufw allow 3000                                     # from all hosts
$ sudo ufw allow from 192.168.1.0/24 to any port 3000 # just to some subnet hosts


Also you can resort to gufw, which simplifies a lot the firewall management.



enter image description here


[#32601] Friday, November 26, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
whoppinolo

Total Points: 93
Total Questions: 113
Total Answers: 107

Location: Cyprus
Member since Mon, Oct 24, 2022
2 Years ago
;