Message from discussion
Quick way to see if a Computer is on the LAN without a Ping
Thread-Topic: Quick way to see if a Computer is on the LAN without a Ping
thread-index: AcZ61X+jHuDfpNLQRreawPslN2kErg==
X-WBNR-Posting-Host: 61.29.9.202
From: =?Utf-8?B?UGhpbGlwIEs=?= <Phil...@discussions.microsoft.com>
Subject: Quick way to see if a Computer is on the LAN without a Ping
Date: Thu, 18 May 2006 16:48:01 -0700
Lines: 13
Message-ID: <B43E01E5-5AFF-4ED6-A422-9FFDDD9252C9@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Newsgroups: microsoft.public.dotnet.framework
NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
Path: g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!TK2MSFTFEEDS01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGXA01.phx.gbl
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)]