是否可以通过 NAT 穿越技术通过 3G 连接 iPhone 进行点对点游戏

发布于 2024-07-21 06:23:06 字数 686 浏览 5 评论 0原文

是否可以将 iPhone 连接到另一部 iPhone 或任何其他使用该游戏协议的网络客户端。

我想我可以使用与 Xbox 360 中使用的相同的 NAT 穿越技术通过防火墙在用户的 Xbox 上托管游戏。

为了使 NAT 遍历有效地工作,我必须有一个中央服务器,允许客户端“广播”他们正在托管的内容,以便另一个客户端可以启动 NAT 连接。 在提供的链接中,这称为中继。

美国 AT&T 3G 网络是否存在任何固有限制会阻止 NAT 穿越技术(是否会限制 wifi 防火墙 NAT 穿越)?

NAT穿越项目: - PJSIP - 通过使用基于标准的协议(例如 STUN、TURN)提供 NAT 穿越功能和冰。 - 使用 Apache MINA Java 网络库进行 NAT 穿越的 Freecast

Is it possible to connect an iPhone to another iPhone or any other network client talking that game's protocol.

I was thinking that I could use the same NAT Traversal technique used in the XBox 360 to host games on users XBox's through Firewalls.

For NAT traversal to work effectively I'd have to have a central server that would allow clients to "broadcast" that they were hosting so that another client could initiate the NAT connection. In the link provided this is called relaying.

Is there any inherent limitation of the US AT&T 3G network that will block the NAT traversal techniques (would you be limited to wifi firewall NAT traversal)?

NAT Traversal Projects:
- PJSIP - providing NAT traversal functionalities by using standard based protocols such as STUN, TURN, and ICE.
- Freecast using Apache MINA Java network library for NAT Traversal

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

无声静候 2024-07-28 06:23:06

iPhone OS 3.0 将提供一个 API,用于多人游戏以及与您附近区域的多个设备的连接,

“您可以在给定区域找到与您玩相同游戏的其他 iPhone 和 iPod Touch;Forstall 举了两个孩子坐在汽车后座的例子。iPhone 3.0 将通过蓝牙自动发现其他应用程序,并且他承诺,“完全无缝”是其背后的后端技术,而且它不仅仅适用于游戏。

来源:CNET 直播博客,以及 Apple 特别活动 Quicktime 视频 演示大约持续 20 分钟。

如果您想要的不仅仅是玩附近的设备,您可能会遇到 3G 网络带宽上限问题以及延迟问题,具体取决于用户所在的位置。 郊区的 3G 覆盖范围非常分散,而美国主要城市的市中心则在一个小区域内集中了多个手机信号塔。 您还可能会遇到 AT&T 问题,具体取决于游戏通过 3G 网络从手机发送和接收的数据量,因为多人游戏需要玩家和服务器(即使是玩家充当一个角色)发送数据信息不断来回。 不过有趣的想法!

iPhone OS 3.0 will have an API for multiplayer gaming and connectivity with over devices in your immediate area,

"You can find other iPhones and iPod Touches in a given area that are playing the same game as you; Forstall gives the example of two kids in the back of a car. iPhone 3.0 will automatically discover other applications over Bluetooth, and there's no pairing. "Completely seamless," he promises. Bonjour is the back-end technology behind this, and it's not just for games"

Sources: CNET Live Blog, and the Apple Special Event Quicktime Video It's about 20 minutes into the presentation.

If you are going for something more than playing with nearby devices, you will probably run into problems with bandwidth caps on the 3G network as well as latency issues depending on where users are located. Boonies with very sporadic 3G coverage vs. downtown major city USA with multiple cell towers concentrated in a small area. You may also run into a problem with AT&T depending on how much data the game is sending and receiving from the phone over the 3G network since multiplayer games require the players and the server (even if it's a player acting as one) to send information back and forth constantly. Interesting idea though!

微凉 2024-07-28 06:23:06

对的,这是可能的。

Eyeball Networks 发布了用于 iPhone NAT 穿越的 SDK

Yes, it is possible.

Eyeball Networks has released a SDK for iPhone NAT Traversal

我的黑色迷你裙 2024-07-28 06:23:06

AT&T 似乎使用随机对称 NAT - 这意味着在没有中继服务器的情况下,其网络上的 2 部 iPhone 之间不可能进行遍历。 我不知道的是,如果 AT&T 上的 iPhone 位于 AT&T 网络的同一部分,或者存在防火墙,它们是否可以使用其私人地址直接相互联系。 上次我检查 TMobile 使用了端口限制锥形 NAT,因此可以在 TMobile 上的 iPhone 之间进行遍历,但不能从 TMobile 到 AT&T。

AT&T appear to use a randomized symmetric NAT - this means traversal is not possible between 2 iphones on their network without a relay server. What I don't know is if iPhones on AT&T can reach each other directly using their private addresses if they are on the same part of AT&T's network, or if there is some firewall. Last time I checked TMobile used a port restricted cone NAT, so traversal is possible between iPhones on TMobile, but not from TMobile to AT&T.

蓝咒 2024-07-28 06:23:06

3G是个大问题。 如果您想通过 3G 与其他玩家建立 UDP 连接,您可能需要尝试以下技术:

https://drive.google.com/file/d/0B1IimJ20gG0SY2NvaE4wRVVMbG8/view?usp=sharing

3G is a big problem. If you'd like to establish UDP connections with other players over 3G, you might want to try this technique:

https://drive.google.com/file/d/0B1IimJ20gG0SY2NvaE4wRVVMbG8/view?usp=sharing

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文