1.) get your local ip by typing:
ifconfig |grep inet
into your shell / terminal. your ip usually looks like this: 192.xxx.xxx.xx
2.) then start the rails server with:
rails server -b 0.0.0.0
3.) Your application can now be obtained by typing:
192.xxx.xxx.xx:3000 in the browser.
Peter Piper
source share