问题描述
我有在我的Ubuntu计算机上运行的开发服务器(来自google appengine sdk).我可以通过导航到localhost:8080
I have development server (from google appengine sdk), running on my Ubuntu computer. I can access my site by navigating to localhost:8080
我想从网络中的另一台计算机(使用Vista OS)访问该站点.
I want to access that site from another computer (with Vista OS) in the network.
ifconfig打印以下内容(摘要):
ifconfig prints the following (snippet):
我认为我应该在第二台计算机上键入 http://192.168.1.103:8080 访问服务器,但这不起作用.
I thought that I should just type http://192.168.1.103:8080 on my second machine to access the server, but that doesn't work.
我可以成功共享家庭网络中的文件,因此Vista机器可以导航Ubuntu机器中的某些目录,但是我无法访问服务器.
I can share files in my home network successfully, so my Vista machine can navigate some directories in my Ubuntu machine, but I can't access the server.
接下来我应该尝试什么?我必须以某种方式配置路由器吗?
What should I try next? Do I have to configure router in some way?
谢谢.
推荐答案
如果您使用的是Python:
If you're using Python:
sudo python2.5 dev_appserver.py -a 192.168.1.103 -p 8080 myapp/
默认情况下,开发服务器也恰好监听8080端口,因此第二个参数是多余的.
The development server also happens to listen to port 8080 by default, so that 2nd argument is redundant.
这篇关于从网络中的另一台计算机访问本地GAE SDK服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!