How to find my server in LAN?

后端 未结 2 516
余生分开走
余生分开走 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:00

    maybe you can use the Broadcast Address to find your server.

    0 讨论(0)
  • 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".

    0 讨论(0)
提交回复
热议问题