如何以编程方式连接电脑和Android手机? [英] How to connect the pc and android mobile programattically?

查看:248
本文介绍了如何以编程方式连接电脑和Android手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hy
I want to make a programattically connection between PC and Android smartphone over internet and i don't know how to do that , the real problem that i cant figure how to connect between the two devices programatically since i don't know the real IP for both of them . 
i know that i will need an application on the PC , and an other one on the Android so they communicate with each other . but i cant figure out how to do it 





我尝试了什么:



我无法弄清楚它是怎么可能的..



What I have tried:

I can't figur out that how it is possible..

推荐答案

使用服务器:它有固定的IP / URL,所以PC和Android设备都可以与它通信,无论它们在哪里(如果它们有互联网连接,显然)。

它们与服务器通信,它充当它们之间的中继,就像实时聊天网站一样。
Use a server: it has a fixed IP / URL, so both PC and Android device can communicate with it, regardless of where they are (provided they have an internet connection, obviously).
They talk to the server and it acts as a relay between them, in much the same way as a "real time chat" website would.


这篇关于如何以编程方式连接电脑和Android手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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