Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1475  / 2 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, 2 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
whoppinolo questions
Tue, Feb 14, 23, 08:30, 1 Year ago
Wed, Sep 28, 22, 06:56, 2 Years ago
Fri, May 27, 22, 01:55, 2 Years ago
Tue, Oct 12, 21, 09:33, 3 Years ago
;