Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2006

Tip: Looking for answers? Try searching our database.

listing computer names on network?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ARTMIC - 16 Sep 2006 04:15 GMT
Can anyone help me,
How can i list the computers on the local area network?
I need to know if a certain computer is turned on and available on the
network.
Thanks.
Vadym Stetsyak - 16 Sep 2006 09:56 GMT
Hello, ARTMIC!

A> Can anyone help me,
A> How can i list the computers on the local area network?
A> I need to know if a certain computer is turned on and available on the
A> network.

On the one hand you can use NetServerEnum
( http://www.pinvoke.net/default.aspx/netapi32.netserverenum )

On the other you can scan your subnet by merely trying to connect or sendinf ping messaga...
To issue ping on specified host you can use IcmpSendEcho win32 function
( http://www.pinvoke.net/default.aspx/icmp/IcmpSendEcho.html )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
ARTMIC - 17 Sep 2006 23:31 GMT
Thank you for the info, i will try it out and let you know how it went.

> Hello, ARTMIC!
>
[quoted text clipped - 13 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot
ARTMIC - 18 Sep 2006 00:36 GMT
The first method failed for me, i guess it expects a real 2000/2003 server to
be on the network?
I have 2 workstations(WinXP) hooked up together, i don't have any real
server running if you will.
the second method is nice, except i'm confused if i am looking at the
internal network IP's or the internet IP's. lol

Is there any way to do something like:

IsServerRunning("ServerName"); (Returns a bool)
isComputerON("ServerName"); (returns a bool)

something simple, i mean explorer lists available computers on the network,
why can't this be easy to do.

> Hello, ARTMIC!
>
[quoted text clipped - 13 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.