Friday, September 3, 2010

Locally testing a Google App Engine iPhone/Android web app

http://thecoderscanon.com/?p=115

by default the launcher runs the app on the interface localhost, which is only accessible on the machine it is running on. This means that a browser on the computer I am developing on can access the website, but not my iPhone on the same network.
In order to make your GAE web app accessible on your local network, configure the launcher to use the address 0.0.0.0 instead of localhost. To do this, open the GoogleAppEngineLauncher, go to Application Settings for your app, add the following to the Extra Flags section “-a 0.0.0.0″, and restart. You will now be able to test your web app on an any device logged into your local network.

--port=8888 -a 0.0.0.0

No comments:

Post a Comment