Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Sinatra Webservice running on localhost:4567 but not on IP

I have a ruby(using sinatra) webservice on windows 7 32 bit OS. Its running on port 4567. Its working fine when I use localhost:4567 but when I replace localhost with the local ip of my machine say, 192.168.103.99:4567 it doesn't work, and fails to connect. I have already disabled the firewall, by-pass proxy and added port 4567 to exception, still no luck.

What might be the issue ?

like image 422
foobar Avatar asked May 30 '13 09:05

foobar


1 Answers

Following worked for me.

ruby app.rb -o 0.0.0.0

like image 83
foobar Avatar answered Sep 17 '22 15:09

foobar