sanjays Posted July 8, 2004 Share Posted July 8, 2004 hi, anyone pls tell me how to check whether our system is connected to the LAN or not?how can we connect to a host in the LAN whose IP address is known? Link to comment Share on other sites More sharing options...
0 James Rose Posted July 8, 2004 Share Posted July 8, 2004 If you are talking about the ability to Ping a server/site, then the attached class will do the job Dim objPing As clsSQLServerAvailable Set objPing = New clsSQLServerAvailable MsgBox objPing.ServerAvailable EDIT: ooops, this code is VB6... well, deal with it (what do you want for nothing?) ;) ServerAvailable.cls Link to comment Share on other sites More sharing options...
0 sanjays Posted July 9, 2004 Author Share Posted July 9, 2004 hai, thanks . By th way I'm doing this in vb.net, tried it .Still problems in the class.The cause may b that i'm not converting it properly to .net class.Anyone pls giv me some direction or help in this. Just checking the NIC for connection with server is enough, how do i get the state of my NIC. sanjays Link to comment Share on other sites More sharing options...
0 James Rose Posted July 9, 2004 Share Posted July 9, 2004 Yes you'd have to run a conversion of the Class (the API calls will be different) But why would just finding out if you have a NIC help you out? Having a network card will not state that you are diffinatively on the network. Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted July 9, 2004 Share Posted July 9, 2004 Check this out. (a single Google, by the way) http://www.eggheadcafe.com/forums/ForumPos...=10862&INTID=14 http://www.google.com/search?q=VB.NET+Ping...=utf-8&oe=utf-8 Link to comment Share on other sites More sharing options...
Question
sanjays
hi,
anyone pls tell me how to check whether our system is connected to the LAN or not?how can we connect to a host in the LAN whose IP address is known?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts