Android P2P (direct-connection) over the Internet (behind NAT)

前端 未结 3 988
轮回少年
轮回少年 2020-12-08 03:00

I\'m starting a small project, basically a multiplayer (as in more than two players) variation of the classic Battleship game.

One problem that I\'m trying to resolv

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 03:30

    You're pretty much forced to use an intermediary. You can look up Natblaster for a mechanism that will work for establishing TCP connections between some NATed devices, but it's not something that you can use in Android without rooting both devices. And even then, it's experimental.

    The best is probably to use an existing federated messaging system like jabber.

提交回复
热议问题