Network Device Discovery

前端 未结 2 1245
执笔经年
执笔经年 2021-02-09 01:40

For my Android app, users need to connect to a server that will be hosted somewhere on the same LAN. There can be multiple servers hosted on the same LAN. To make it easy for

2条回答
  •  我寻月下人不归
    2021-02-09 02:22

    Well, jmDNS is a complete Java library that you could use for your setup. It can be used to braodcast your services which other clients can search for.

    Bounjour service on windows is a bit tricky, although it's definitely possible. The easier way, I would say is to use jmDNS for broadcast and discovery for both your servers and clients.

提交回复
热议问题