Solved

What PCs (IP Address) are connected to Network.

Posted on 2003-11-16
6
198 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 125
Add and format columns in vb6 7 70
transition to visual .net from vb6 5 58
VB script to continue despite error 2 48
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

740 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