简体   繁体   English

移动对等连接

[英]Mobile peer-to-peer connections

I want to make some software that would be great if it do not needed a server at all.如果它根本不需要服务器,我想制作一些很棒的软件。

It is possible to make an internet connection between two mobile devices?可以在两个移动设备之间建立互联网连接吗?

Does someone have a clue on what I need to research for iPhone, Android and Blackberry?有人知道我需要为 iPhone、Android 和 Blackberry 研究什么吗?

You can do a direct connection with UDP or TCP but you will encounter logistical problems.您可以与 UDP 或 TCP 直接连接,但您会遇到后勤问题。 For example if you are on the same wifi network all will be good.例如,如果您在同一个 wifi 网络上,一切都会很好。 But if one phone is on a wifi network with a NAT'd address and the other is on a public address, you will have problems since the private NAT'd address is not route-able.但是,如果一部手机位于带有 NAT 地址的 wifi 网络上,而另一部手机位于公共地址上,则您将遇到问题,因为私有 NAT 地址不可路由。 If the phone with the private knows the ip of the public address phone,the private ip phone can make the initial contact.如果私人电话知道公共地址电话的ip,私人电话ip可以进行初步联系。
This is why people use server to have one central location for everyone to meet and connections can be established.这就是为什么人们使用服务器来为每个人提供一个中心位置,以便大家见面并建立联系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM