I know I just have a mental block, but how would a client find the IP of a server on the lan given the port number the server is listening on? I'm writing both parts, client and server, so nothing is out of my reach, but I just can't think of how to ask the lan who hears me on port XX (the port number can be anything). VB6 would be easiest, since the rest of the code is in VB6. I'm currently trying to use the Winsock control, but I'll use whatever works.

I can ping the server if I know the IP, but I want to find the IP at runtime.