Solved

What PCs (IP Address) are connected to Network.

Posted on 2003-11-16
6
195 Views
Last Modified: 2013-11-13
Hi Experts,

May I know is anyone of you could help me to figure out how to write VB code to check what PCs (IP address) are currently connected to network (By winsock or others)?

Sean
0
Comment
Question by:whsean
6 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 100 total points
ID: 9761044
0
 

Author Comment

by:whsean
ID: 9761075

Very good solution. By the way how can i get the IP address as well?
0
 
LVL 3

Assisted Solution

by:NBrownoh
NBrownoh earned 100 total points
ID: 9761102
the bellow comment was taken from:
http://beta.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20700795.html

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Well, you could use something like netserverenum from vbadmincode to list the machines on the domain: http://www.vbadmincode.btinternet.co.uk/code/netserverenum.zip

then now that you have the hostname, use the code here to get the ip address from the hostname:
http://www.mvps.org/vbnet/index.html?code/network/iplookup.htm

Should be pretty easy to put together at that point.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

i gave it a shot and it works out great.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 10548495
Moderator, my recommended disposition is:

    Split points between: vinnyd79 & NBrownoh

Dan Rollins -- EE database cleanup volunteer
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
to transfer string from C lanaguage to VBA 4 65
Excel - Save a copy of work book 13 84
TT Auto Dashboard 13 92
Problem to App 4 82
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question