Hello!) There is a program like client-server, but it can act as a client and as a server) Ie There is a group of computers connected to the network via Wifi, each one has this program. On one of the computers in the program, a tick is placed that I am a server, which means everyone else must search for it and join it - the clients. Then, after a certain time, the server starts sending messages on its own request, as well as at the request of customers. How to find a server?
Otherwise, knowing in advance the name of the server computer, you can connect to it, but how to know its IP on the network automatically?
Yes, you can of course find out ip through ipconfig, specify it in the client and connect) But how to do it automatically?
Thank.