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.

enter image description here

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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -