Search code examples
javagoogle-app-enginegradlegoogle-cloud-endpoints-v2

Access App Engine localhost using IP address in Cloud Endpoint Framework


Previously, I was using this to access App Engine on the IPv4 address in the build.gradle file:

appengine {
    httpAddress = "0.0.0.0"
    httpPort = 8888
...
}

But after upgrading to Cloud Endpoint plugin, this option has removed. Any help would be welcome.


Solution

  • If you're using the new app-gradle-plugin, you want this:

    appengine {
      run {
        host = "0.0.0.0"
        port = 8080
      }
    }
    

    See new plugin documentation.