eclipsegoogle-app-enginelocalhostgoogle-cloud-endpointsdev-appserver

Google AppEngine dev app server won't run on localhost


I'm using Eclipse Java EE and when I compile and run my Google AppEngine project on localhost:8080 the browser doesn't give any correct output, but when I'm using 127.0.0.1:8080 my program runs on the browser just fine. But when I deploy my app to the google appspot then the localhost:8080 will updated and works well ( only for the instance that I deployed to the appspot ).

Why localhost:8080 won't update right and 127.0.0.1:8080 update right?

I can't use 127.0.0.1:8080 insted localhost always because when I try to get the _ah/api/explorer then 127.0.0.1:8080/_ah/api/explorer will redirect to the google apis explorer ( not to my api explorer).

What should I do to get this right?


Solution

  • Use the parameter :

    --address=...
    

    The host address to use for the server. You may need to set this to be able to access the development server from another computer on your network. An address of 0.0.0.0 allows both localhost access and hostname access. Default is localhost.

    More on this here.