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 -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -