So lets say you recently made a rails app and you want to see it on your phone. How to do that?
1. (fyi- for mac users) in terminal type in "ifconfig"
2. Find the "netmask" address ... for example it may look like this:
1. (fyi- for mac users) in terminal type in "ifconfig"
2. Find the "netmask" address ... for example it may look like this:
inet 10.6.7.216 netmask 0xfffffe00 broadcast 10.6.7.255
That xxx.255 = your wireless network's IP address
xxx.216, MY computer's ipaddress within the wireless networks address.
3. So now startup your rails app AND make sure your phone is on the same wireless network as your computer.
4. Then point your browser to 10.6.7.216:3000 and you should be good to go!!
No comments:
Post a Comment