Topic: How to make the RoR App accessible to other machine in the network

Hi

I have installed RoR in my Windows 7 machine and webserver seems to be WebRick.

I have started my apps with following command

rails server -b 172.24.146.194 -p 3000
(Also tried - rails server)

and it shows

=> Booting WEBrick
=> Rails 3.2.12 application starting in development on http://172.24.146.194:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-02-21 14:36:32] INFO  WEBrick 1.3.1
[2013-02-21 14:36:34] INFO  ruby 1.9.3 (2013-02-06) [i386-mingw32]
[2013-02-21 14:36:34] INFO  WEBrick::HTTPServer#start: pid=724 port=3000


the ip 172.24.146.194 is my machine itself and
am able to access my app as
http://172.24.146.194:3000  AND
http://localhost:3000
http://pcname:3000

THE PROBLEM IS THAT, IT CAN'T ACCESS FROM OTHER PC'S IN THE SAME NETWORK

I already have IIS7 running and it is accessbile in other pc's as http://172.24.146.194/

Please let me know if somebody found a solutions for this.

Thanks
Firos

Re: How to make the RoR App accessible to other machine in the network

Something we need to set in Windows Firewall Advanced Security? Something like adding new rules?
Or should I edit config file of WebRick?

Re: How to make the RoR App accessible to other machine in the network

Hi Friends, I just fixed the issue.

Actually it was related to our network. Only the ports 80 was allowed by our super administrator.

So what I did is,
Stopped IIS service on my pc
Restarted Rails server as
rails server -b 172.24.146.194 -p 80

http://172.24.146.194/ is showing my ruby app from other machine.

Now everything fine and I am happy now smile

Have a great day!