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.

On 8 July 2015 at 13:07, Padmahas Bn [email protected] wrote:

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

On Wednesday, July 8, 2015 at 1:35:19 PM UTC+1, Colin L. wrote:

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