• 0

Network Connection


Question

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

  • 0

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

  • 0

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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.