Well, localhost is 127.0.0.1, which is not accessible from outside your computer by default, but... You can use a development proxy like Pow to fix this.
Pow is very simple to setup and configure to your needs and apart from that awesomeness it can serve your apps to other devices on the same network.
What you need to know before you proceed with the steps below:
- Your computer's IP address on your LAN.
- The name of your app.
For the example steps below let's use the following values.
- IP: 10.0.1.8
- App name: magicapp
Steps to happiness (if you run OS X or Linux):
- Install Pow with:
$ curl get.pow.cx | sh
- Tell Pow to look for your app at localhost port 4200 with:
echo 4200 > ~/.pow/magicapp
VoilĂ . If all went well, you should be able to access your app from other devices on the same network at: http://magicapp.10.0.1.8.xip.io/
Hope this helps.