Network discovery in Java using multicasting

前端 未结 4 758
挽巷
挽巷 2020-12-08 11:52

I\'m trying to make a client/server Java App. Both client and server will be running on the same wi-fi network. Server will be running on a specific port that client is awar

4条回答
  •  一生所求
    2020-12-08 12:14

    You could try using SSDP. It's what UPnP devices use to discover each other. It's multicast on port 1900 and just uses really simple packets to send around IPs and service information.

    Cling is a UPnP lib you can pull from. Note I'm not recommending you move to UPnP - just the discovery protocol used.

提交回复
热议问题