来自不同计算机的Andr​​oid设备之间的通信 [英] communication between Android devices from different computer

查看:113
本文介绍了来自不同计算机的Andr​​oid设备之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使牛逼两款Android模拟器上进行通讯日食从与快速以太网链路连接的两个型动物的机器呢?

Is it possible t make two android emulator on eclipse communicate from two differents machines which are connected with a fast ethernet link ?

感谢您的答复。

推荐答案

是的。即将离任的方只是工作,但输入侧(哪一个正在接收的连接)是一个比较复杂一点。你会建立一个仿真器或ADB端口转发,但这只能使环回接口上的端口(本地主机,即127.0.0.1)托管模拟器环机,通过它承载模拟器Android设备。它可能不会接受外部网络上的连接。因此,要解决这个问题,你可以从一台主机的机器ssh到其他,并设置了SSH端口转发所以在接收机的回送一个端口上的连接机前锋的回送一个端口,然后转发到其模拟器...

Yes. The outgoing side just works, but the incoming side (whichever one is receiving the connection) is a bit more complicated. You would set up an emulator or adb port forward, but that only makes a port on the loopback interface ("localhost" ie 127.0.0.1) of the machine hosting that emulator ring through to the the emulator android device it is hosting. It probably will not accept connections on the external network. So to get around that, you can ssh from one hosting machine into the other, and set up an ssh port forward so a port on the loopback of the connecting machine forwards to a port on the loopback of the receiving machine and then forwards into its emulator...

这篇关于来自不同计算机的Andr​​oid设备之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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