|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
listing computer names on network?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. 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 ) Thank you for the info, i will try it out and let you know how it went.
Show quote "Vadym Stetsyak" wrote: > 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 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. Show quote "Vadym Stetsyak" wrote: > 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 |
|||||||||||||||||||||||