Make Google App Engine Development Server Serve Publicly
Ever wanted to quickly test that Google App Engine site on another computer without deploying but couldn’t because it only accepts localhost connections? Well it’s quite simple actually.
If you are using the command line add this argument to the end.
--address=
If you are using the windows launcher, select the application, click Edit > Application Settings… then in the ‘Extra command line flags’ section, add in
--address=
This works because by default, the address arguement is ‘localhost’ which will restrict the server. However, leaving it blank will allow any host to connect to it.
You could even set up port forwarding on your router to allow anyone to connect if you dare.
Thanks! I was about to set up an nginx proxy when I found this. Much better!
Oh thank You a lot, Glen!!!
You saved my sunday (because I love to work in my bed with my laptop accessing my desktop via LAN).
By the way: The empty argument seems no longer to work:
Exception in thread “main” java.lang.IllegalArgumentException: address requires an argument, for example, “address=FOO”
but You can set the machine’s IP address like:
–address=192.168.2.2
and now the dev engine is accessable from outside (and the 127.0.0.1 still works).
Have a nice and peaceful time!!!
Great idea a kind of Twitter catalogue of posts … Hmmm
Block hidden keyloggers, Trojans, worms, and other suspicious programs.