Android connect to tethering socket

后端 未结 3 911
陌清茗
陌清茗 2020-12-15 03:42

I have 2 android devices, one acts as a server that is in tethering mode, and accepting connections to a port. The other device acts as a client that connects to the server

3条回答
  •  -上瘾入骨i
    2020-12-15 04:13

    In a tethered wifi connection, connection provider can not work as a client. So we need to implement a bidirectional tcp socket connection. Use a server socket with a port number in device which is in tethering mode. This device act as a server. In client device use socket to access the client port with IP address.

提交回复
热议问题