How to make two android devices to communicate through TCP

前端 未结 5 903
我在风中等你
我在风中等你 2020-12-14 17:10

We want to establish TCP/IP connection between two android devices. For now we thought that it would be simpler if we make the connection device to device. So there is no se

5条回答
  •  爱一瞬间的悲伤
    2020-12-14 18:02

    One device behind a NAT is not a problem. The requirement is: the server must be reachable by the client.

    I'm using Apache Mina to handle TCP connections. It have really made my life easier. It can be used on both client and server. Give it a try...

提交回复
热议问题