从工作站外访问的网络服务器运行在Eclipse中 [英] Accessing webserver running within Eclipse from outside the workstation

查看:247
本文介绍了从工作站外访问的网络服务器运行在Eclipse中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑针对性地部署在谷歌AppEngine上当地在Eclipse Web项目。因此,服务器启动时,它通常可以通过输入本地主机访问:8080到一些浏览器。一切罚款为止。 但是,我需要的是从外部访问,从一个朋友的机器说,(这显然驻留在同一个无线网络中)。所以当他种下<我的笔记本-IP-地址>:8080他应该达到本地运行的Web服务器(在Eclipse)。但是,这并不正常工作!

I run a web project targeted to be deployed on the Google Appengine locally from within Eclipse. So the server starts up and it can be accessed normally by typing localhost:8080 into some browser. Everything fine so far. But what I need is to access it from outside, say from a friend's machine (which obviously resides in the same wireless network). So when he types the following <my-notebook-ip-address>:8080 he should reach the locally running webserver (within Eclipse). But that doesn't work!

我需要这个的原因是,我希望在我的笔记本上运行Android模拟器在我的Andr​​oid应用程序来访问我的本地运行的网络服务器。这仅仅是可以使用笔记本电脑的真实IP地址,因为本地主机上的Andr​​oid将会是手机本身。

The reason I need this is that I want my Android app running on my notebook within the Android emulator to access my locally running webserver. This is just possible by using the notebooks real ip address since localhost on the Android will be the phone itself.

更多的细节

  • 的Mac OSX雪豹
  • 在Eclipse的伽利略
  • 在网络服务器:谷歌应用引擎(在Eclipse启动)

当在Eclipse启动AppEngine上的服务器我可以使用它:的http://本地主机:8080
我不能从我的本地笔记本电脑(其中网络服务器运行在Eclipse中)访问它不过: http://192.168.0.5:8080 其中,的IP是在网络中的我的IP地址

When launching the Appengine server from within Eclipse I can access it with: http://localhost:8080.
I cannot access it however from my local notebook (where the webserver is running within Eclipse) with: http://192.168.0.5:8080 where the IP is my IP address in the network.

我有所有的防火墙被禁用!

I have all Firewalls disabled!

推荐答案

不知道这是否适用于你的情况,但你可以从你的Andr​​oid设备与10.0.2.2,而不是本地主机访问主机PC。

Not sure if this applies to your situation, but you can access the host PC from your Android device with 10.0.2.2 instead of localhost.

这篇关于从工作站外访问的网络服务器运行在Eclipse中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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