Solved

What PCs (IP Address) are connected to Network.

Posted on 2003-11-16
6
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to implement Singleton Design Pattern in Java.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

623 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