Dumitru Sbenghe wrote: > The example use sockets in an unsual way (raw sockets)
> Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, > ProtocolType.Icmp); > and the asp.net user ASPNET doesn't have enough rights to do that; I believe you need administrative privileges to open a raw socket. However, there's an ICMP API that can be used by non-admins to send pings (not sure what it is off the top of my head). > You must run the aspnet process using a user with high privilege ( for > example SYSTEM :)); > You can change the machine.config file; replace the default "machine" > username with "SYSTEM" in the "processModel" tag, attribute "userName" I would _strongly_ recommend against this. It's a serious security change you're making here for the sake of a ping. Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.