当localhost工作正常和MacOSX时,可以通过本地ip-address访问AppEngine SDK站点 [英] Can access AppEngine SDK sites via local ip-address when localhost works just fine and a MacOSX

查看:133
本文介绍了当localhost工作正常和MacOSX时,可以通过本地ip-address访问AppEngine SDK站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试设置Facebook开发网站(<使用指向我的防火墙的dyndns.org主机名,将呼叫重定向到我的mac书籍)。



似乎GoogleAppEngineLauncher默认为localhost并阻止访问ip地址直。
有没有办法在GoogleAppEngineLauncher中更改这个行为?
这是Google内置的某种限制吗?



似乎没有配置问题,因为没有任何设置这个。
所以我猜测补丁源将是必需的?

解决方案

根据最新的文档 -a 不再工作。



这可以通过 - 主机参数与 dev_appserver.py 命令



dev_appserver --host =< your_ip_address> < your_app>



- host =
用于服务器的主机地址。您可能需要将其设置为能够从网络上的其他计算机访问开发服务器。地址0.0.0.0允许本地主机访问和主机名访问。默认是localhost。



如果要使用localhost& ip地址,使用以下命令:



dev_appserver.py --host = 0.0.0.0< your_app> / p>

Can access AppEngine SDK sites via local ip-address when localhost works just fine and a MacOSX using the GoogleAppEngineLauncher.

I'm trying to setup facebook development site (using a dyndns.org hostname pointing at my firewall which redirects the call to my mac book).

It seems like GoogleAppEngineLauncher defaults to localhost and blocks access to the ip-address directly. Is there a way to change that behaviour in GoogleAppEngineLauncher? Is this some kind of limitation built in by Google?

It doesn't seem to be an issue of configuration, because there isn't any settings for this. So I'm guessing patching the source will be required?

解决方案

As per the latest documentation -a wont work anymore.

This is possible by passing --host argument with dev_appserver.py command

dev_appserver --host=<your_ip_address> <your_app>

--host= 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.

if you want to access development server using localhost & ip address, use this command:

dev_appserver.py --host=0.0.0.0 <your_app>

这篇关于当localhost工作正常和MacOSX时,可以通过本地ip-address访问AppEngine SDK站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆