从网络中的另一台计算机访问本地GAE SDK服务器 [英] Accessing local GAE SDK server from another computer in the network

查看:70
本文介绍了从网络中的另一台计算机访问本地GAE SDK服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在我的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):

eth1链接encap:以太网HWaddr 00:1f:e1:c5:30:cf
inet地址:192.168.1.103广播:192.168.1.255掩码:255.255.255.0 inet6 addr:fe80 :: 21f:e1ff:fec5:30cf/64范围:链接 UP广播多播MTU:1500公制:1 RX数据包:39204错误:0掉落:0超限:0帧:46271 TX数据包:26198错误:6丢弃:0超限:0运营商:0 碰撞:0 txqueuelen:1000 接收字节:25876770(25.8 MB)发送字节:4566161(4.5 MB) 中断:17个基地址:0xc000

eth1 Link encap:Ethernet HWaddr 00:1f:e1:c5:30:cf
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21f:e1ff:fec5:30cf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:39204 errors:0 dropped:0 overruns:0 frame:46271 TX packets:26198 errors:6 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25876770 (25.8 MB) TX bytes:4566161 (4.5 MB) Interrupt:17 Base address:0xc000

我认为我应该在第二台计算机上键入 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服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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