从工作站外访问的网络服务器运行在Eclipse中工作站、服务器、网络、Eclipse

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

我跑针对性地部署在谷歌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.

阅读全文

相关推荐

最新文章