简体   繁体   English

使用Cloud Endpoint Framework中的IP地址访问App Engine本地主机

[英]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: 以前,我使用它来访问build.gradle文件中IPv4地址上的App Engine:

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

But after upgrading to Cloud Endpoint plugin, this option has removed. 但是升级到Cloud Endpoint插件后,此选项已删除。 Any help would be welcome. 任何帮助都将受到欢迎。

If you're using the new app-gradle-plugin , you want this: 如果您使用的是新的app-gradle-plugin ,则需要这样:

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

See new plugin documentation . 请参阅新的插件文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法通过使用IP地址而不是localhost访问Web应用程序 - Unable to access web application by using ip address instead of localhost 如何使用公共IP地址而不是localhost访问我的webapp? - How to access my webapp using public IP address instead of localhost? 使用Google App Engine端点连接到Cloud SQL - Connect to Cloud SQL with Google App Engine Endpoint 谷歌应用引擎云终端安全性 - google app engine cloud endpoint security 用于IP地址的应用引擎请求标头 - App engine request headers for ip address 如何使用Google App Engine(Java)创建剩余端点以将多部分数据上传到Google云存储 - How to create a rest endpoint using Google App Engine (Java) to upload multi part data to google cloud storage Google App Engine Java,无法访问localhost! - Google App Engine Java, cannot access localhost! 由于连接重置,Google App Engine生成Cloud Endpoint失败 - Google App Engine Generating Cloud Endpoint failed due to connection reset 无法生成Cloud Endpoint客户端库 - “不是App Engine项目” - Cannot Generate Cloud Endpoint Client Library - “Not an App Engine project” 如何在App Engine Java中配置IP地址和端口? - How do you configure the IP address and port in App Engine Java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM