Solved

What PCs (IP Address) are connected to Network.

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now