Hello, I'm trying to get the ICMP code found here to work. However on this line:
Socket = new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork,
System.Net.Sockets.SocketType.Raw,
System.Net.Sockets.ProtocolType.Icmp);
I get SocketException: "An attempt was made to access a socket in a way forbidden by its access permissions" (Native error code: 10013)
Running in administrator mode is one (bad) solution, but since I want my program to work on user level, what would you sugesst? Other ICMP approaches is also welcome.
I have been trying to play around with "ClickOnce" security settings, which didn't help.