Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What PCs (IP Address) are connected to Network.

Posted on 2003-11-16
6
Medium Priority
?
202 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
4 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 400 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 400 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

772 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