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