Go to Google Groups Home    microsoft.public.dotnet.framework
Quick way to see if a Computer is on the LAN without a Ping

Philip K <phil...@discussions.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)]