Share local server through a router on a Mac

0

I've built an application using the Rails framework that was designed for two or three iPads to access through a local network. However, the building I will rent does not have an internet connection for me to use. Is it possible to share the local rails server through a router that the iPads can connect to.

Baylor Rae'

Posted 2012-05-25T03:13:07.570

Reputation: 103

Answers

1

Yes, it is possible. You can access your application from iPad (or any other device) by specifying the IP address in the browser Eg: 192.168.x.x:3000/ (Assuming rails is running at localhost:3000 on your server machine) if all the devices are connected to the same network.

Kashyap

Posted 2012-05-25T03:13:07.570

Reputation: 159

I connected my iPad and laptop to a router, without the router being connected to the internet, but the iPad can't load the page. I can see in the server logs that it starts making the request, but after about 20 minutes it quits. Is there a setting that I need to change for it to work?

– Baylor Rae' – 2012-05-25T15:36:07.667

Does the request from your laptop work fine? – Kashyap – 2012-05-25T16:06:37.270

I switched the server to apache2 with phusion passenger and it's running great. – Baylor Rae' – 2012-05-25T17:37:42.973