-
vb.net
hi,
How to check using VB.net application whether the devices like printer are connected to the system ?
.How can we check if NIC is present and is connected to network?
IP address alone is enough to connect to a host in the network ?
Anyone knows please help me.
sanjays
-
For printers collection use:
Code:
System.Drawing.Printing.PrinterSettings.InstalledPrinters.Item
For IP address:
Code:
Dim ipHostInfo As System.Net.IPHostEntry = System.Net.Dns.Resolve(System.Net.Dns.GetHostName())
Dim ipAddress As System.Net.IPAddress = ipHostInfo.AddressList(0)
-
hi,
this gets the ip address ,thanks for it.
But my need is to know whether the NIC has connection with the network or not. And how to connect to a host in the LAN?
-
System.Net.Sockets - Ping to check for network activity, and connect to a host. Need further let me know.