|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Quick way to see if a Computer is on the LAN without a PingI 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. 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)] > |
|||||||||||||||||||||||