ruby on rails - Cannot access sinatra app through the local network -
i have rails application. if start rails s
(port 3000), works both on machine , every device on local network via ip address (192.168.0.3 in case).
have sinatra application. if start ruby app.rb
(port 4567), works on machine, it not accessible other devices on local network.
both application use thin app server.
is related how sinatra works?
try ruby app.rb -o 0.0.0.0
or ruby app.rb -e production
. either should work.
Comments
Post a Comment