Need clarification on accessing application over LAN

Hello all,

Instead of hosting my rails app, if I run the rails app in one system using rails s (default server), how can I access localhost:3000/ from another system connected over Local Area Network (LAN) ?

Thank you.

Hello all,

Instead of hosting my rails app, if I run the rails app in one system using rails s (default server), how can I access localhost:3000/ from another system connected over Local Area Network (LAN) ?

It might well just work. Assuming the ip address of the server is 192.168.1.nn then use 192.168.1.nn:3000

If not then what operating system are you using?

Colin

> Hello all, > > Instead of hosting my rails app, if I run the rails app in one system using > rails s (default server), how can I access localhost:3000/ from another > system connected over Local Area Network (LAN) ?

It might well just work. Assuming the ip address of the server is 192.168.1.nn then use 192.168.1.nn:3000

If not then what operating system are you using?

As of rails 4.2 you also need to use the -b option to bind to the correct interface (the default is just localhost

Fred