News for hackers. Stuff that matters.
Re:Ask HN: How to test a localhost (desktop) from mobile? by MattBearman on Saturday August 18, 2012 @04:25AM (#4400590)
If you're on the same lan it's as simple as going to the IP address of the local server on your phone.

I recently tried exactly this. Running MAMP on my MacBook pro, went to 192.168.0.5 (my MacBook's IP address) on my iPhone while connected to the same wifi as the MacBook and there was the MAMP localhost page.

The only problem is (as far as I know) there's no way to edit /etc/hosts on an iPhone (although I imagine you can do it on Android), so it has to be IP based.

Re:Ask HN: How to test a localhost (desktop) from mobile? by bazookaBen on Saturday August 18, 2012 @01:50PM (#4401728)
works like a charm
Re:Ask HN: How to test a localhost (desktop) from mobile? by pixelcort on Thursday August 23, 2012 @12:32PM (#4423295)
If you are using an iOS device and your server is on the same network, you can use Bonjour/ZeroConf to quickly access it. For OS X, you can set the hostname in System Preferences > Sharing. Then just access hostname.local from the iOS device.
Re:Ask HN: How to test a localhost (desktop) from mobile? by bazookaBen on Saturday August 18, 2012 @02:47AM (#4400443)
SHIM looks pretty promising, and runs on nodeJS https://github.com/marstall/shim

Any non-nodeJS alternatives?

Re:Ask HN: How to test a localhost (desktop) from mobile? by jongold on Saturday August 18, 2012 @03:37AM (#4400516)
On the same network? Assuming you're running a server can't you just got to your local IP:port? (or bazookaBen.local:port on a Mac)
Re:Ask HN: How to test a localhost (desktop) from mobile? by bazookaBen on Saturday August 18, 2012 @02:53AM (#4400455)
also found Drive-In, which runs on Apache+PHP https://github.com/scottjehl/Drive-In