Connecting to the GAE development server running on another machine
December 29, 2013 Leave a comment
Google App Engine comes with a nice development server located in APP_ENGINE_HOME/bin/dev_appserver.sh
The syntax to run it is: dev_appserver.sh PATH_OF_YOUR_GAE_EXPLODED_WAR
When you do that, your application is accessible from http://localhost:8080, however connecting to it from another machine using http://YOUR_IP:8080 will probably not work.
If this is your case, then it’s probably because it only listens on your loopback address (127.0.0.1)
[laurent@localhost ~]$ netstat -an | grep 8080 tcp 0 0 ::ffff:127.0.0.1:8080 :::* LISTE
To fix that, launch your dev appserver with “-a 0.0.0.0” and you should be good to go: dev_appserver.sh -a 0.0.0.0 PATH_OF_YOUR_GAE_EXPLODED_WAR
[laurent@localhost ~]$ netstat -an | grep 8080 tcp 0 0 :::8080 :::* LISTEN
… and if it still doesn’t work, check your firewall settings: maybe the access to post 8080 is blocked.
Laurent KUBASKI