|
-
Dec 20th, 2008, 10:58 PM
#1
Thread Starter
Addicted Member
-
Dec 20th, 2008, 11:13 PM
#2
Re: Detecting Computers On Lan
Which programming language do you need it? Have you tried searching here or googling for it?
-
Dec 20th, 2008, 11:23 PM
#3
Re: Detecting Computers On Lan
If this is running over a LAN why not use the Computer name(s) rather than IP Addresses?
-
Dec 21st, 2008, 12:25 AM
#4
Re: Detecting Computers On Lan
This is for VB6.0, and this is for C#, take your pick.
-
Dec 21st, 2008, 11:24 AM
#5
Thread Starter
Addicted Member
Re: Detecting Computers On Lan
 Originally Posted by dee-u
Which programming language do you need it? Have you tried searching here or googling for it?
I am sorry for didnt mention the language.... I need vb only.... Thanks for your links.... Try it now...
-
Dec 21st, 2008, 12:14 PM
#6
Re: Detecting Computers On Lan
see my signature for the IP / Subnet Range link. one of the parts generates a list of IP's.
once you have the list you can ping them and see if they respond.
i'd do it in a backgroundworker so as not to make your app appear slow, and set the timeout to a low value if the computers are on the same network.
Code:
Dim ipLIST As List(Of String) = ipRange("192.168.1.1", "255.255.255.0") 'get list
Dim ipFND As New List(Of String)
'in a backgroundworker
For idx = 0 To ipLIST.Count - 1
If My.Computer.Network.Ping(ipLIST.Item(idx), 1) Then
'found one
ipFND.Add(ipLIST.Item(idx))
End If
Next
Last edited by dbasnett; Dec 21st, 2008 at 12:25 PM.
-
Dec 21st, 2008, 12:43 PM
#7
Thread Starter
Addicted Member
Re: Detecting Computers On Lan
[QUOTE=dbasnett]see my signature for the IP / Subnet Range link. one of the parts generates a list of IP's.
once you have the list you can ping them and see if they respond.
i'd do it in a backgroundworker so as not to make your app appear slow, and set the timeout to a low value if the computers are on the same network.
Thanks for your reply..... Buddy I need vb code for finding out... But your IP / Subnet Range link is vb.net...
-
Dec 21st, 2008, 02:50 PM
#8
Thread Starter
Addicted Member
Re: Detecting Computers On Lan
 Originally Posted by dee-u
This is for VB6.0, and this is for C#, take your pick.
That C# code works perfectly.... Thanks dee-u
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|