Re:Auto-detect chat server
In the small local network, you will know all the ip addresses of the computers. Hence, you can try to connect to every computer one by one. If you could establish an connection with a computer, it would be the chat server. Please use a specific listening port for your chat server, for example, 31121. If you use a well-known port, say 80, the chat clients may connect to a web server.
After you have found the chat server, you can save its ip address to Registry so that you need not to search for it at the next time.
|