One of the solution will be to use a socket communication. Open a socket on the server and wait for an incoming connection. When a client start it connect to the socket and can advertise/send information to the server. There is a good example of socket communication in "Learning Perl".