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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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)]
 
Have you tried it? The Windows ping.exe program is available to general
user accounts.

Mike Ober.
 
Back
Top