quwiltw
Contributor
Anyone know how to get a list of all machines in the local broadcast domain that is listening on a particular port? I want to populate a combo box with all of the active sql servers on our domain. I know what port it listens on but I don't know how to send out a broadcast request for any computers that happen to be listening on that port. It's just like when you register a new sql server in enterprise manager and it comes up with a list of available servers. All the .NET framework classes I've found support more point to point socket connections rather than more of a querying the network-type thing. Any pointers would be appreciated. Thanks,