How to find my server in LAN?

后端 未结 2 551
余生分开走
余生分开走 2021-01-15 13:16

I have two my own applications on C++ and Java: server and client. It both in one LAN and can transfer data via specified port. I want to make it possible, that client can f

2条回答
  •  情深已故
    2021-01-15 14:09

    Why not using UDP broadcast? the client can UDP broadcast "I am at x.x.x.x", and the server can answer (in UDP) to the client, "I am at y.y.y.y".

提交回复
热议问题