If you are building a web application using Google App Engine you might be interested in testing it with your smartphone ( note: for this post, we suppose your appengine server and your smartphone are conected to the same network). This is how I manage to do it.
Get your IP:
First thing to do it to get the IP where the server is running (in this case 192.168.1.X
):
On a mac use a ifconfig
.
> ifconfigOn a windows machine you would do a
...
inet 192.168.1.X netmask 0xffffff00 broadcast 192.168.1.255
...
ipconfig
.
-host
parameter set to 0.0.0.0
.
> goapp serve -host=0.0.0.0Access your web app from your smartphone:
INFO 2014-04-26 10:25:33,296 devappserver2.py:764] Skipping SDK update check.
WARNING 2014-04-26 10:25:33,299 api_server.py:374] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2014-04-26 10:25:33,302 api_server.py:171] Starting API server at: http://localhost:53542
INFO 2014-04-26 10:25:33,305 dispatcher.py:182] Starting module "default" running at: http://0.0.0.0:8080
INFO 2014-04-26 10:25:33,307 admin_server.py:117] Starting admin server at: http://localhost:8000
http://192.168.1.X:8080/