New topic: udpsocket and SQL Server question
<http://forums.realsoftware.com/viewtopic.php?t=47644> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message rlunn Post subject: udpsocket and SQL Server questionPosted: Fri Apr 19, 2013 5:33 am Joined: Fri Feb 27, 2009 12:18 am Posts: 53 Hi, i need to enumerate instances of MS SQL Server on a network. i have been reading that the discovery is done by UDP broadcastin &h02 on port 1434 i have tried to find an example of how this is done, but i cant find one. i have tried :- udpsocket1.port = 1434 udpsocket1.NetworkInterface = system.GetNetworkInterface(0) udpsocket1.connect if udpsocket1.isconnected then udpsocket1.write(udpsocket1.broadcastaddress,chr(2)) end if but i get "invalid port error" please can anyone help with what i'm doing wrong? Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
