Home All Groups Group Topic Archive Search About

Quick way to see if a Computer is on the LAN without a Ping

Author
18 May 2006 11:48 PM
Philip K
I need a quick responsive (say 100ms) way to check if a computer is on the
LAN from a .NET program that is run by a low level user.

Is there a way?

Apparently Ping (ICmp over raw socket) can only be done by an admin user -
so I am told.
I am am running with these permissions:
[assembly: PermissionSetAttribute(SecurityAction.RequestMinimum, Name =
"LocalIntranet")]
[assembly: SocketPermissionAttribute(SecurityAction.RequestMinimum,
Unrestricted=true)]

Author
19 May 2006 1:23 AM
Michael D. Ober
Have you tried it?  The Windows ping.exe program is available to general
user accounts.

Mike Ober.

Show quote
"Philip K" <Phil***@discussions.microsoft.com> wrote in message
news:B43E01E5-5AFF-4ED6-A422-9FFDDD9252C9@microsoft.com...
> I need a quick responsive (say 100ms) way to check if a computer is on the
> LAN from a .NET program that is run by a low level user.
>
> Is there a way?
>
> Apparently Ping (ICmp over raw socket) can only be done by an admin user -
> so I am told.
> I am am running with these permissions:
> [assembly: PermissionSetAttribute(SecurityAction.RequestMinimum, Name =
> "LocalIntranet")]
> [assembly: SocketPermissionAttribute(SecurityAction.RequestMinimum,
> Unrestricted=true)]
>

AddThis Social Bookmark Button