Discovering clients on a wifi network

前端 未结 4 1356
不知归路
不知归路 2021-01-23 16:34

I\'m writting a java application, and I need to quickly discover any other running clients on any wired or wireless local networks in order to establish a TCP connection.

<
4条回答
  •  花落未央
    2021-01-23 17:03

    A network scan can be very long, even longer on wireless networks. If you need them quickly thru Java you may implement a "meeting point" server on your network. This server listen to a predefined port, clients register on the server on startup and the server can distribute information about the clients on request.

    HTH.

提交回复
热议问题