Raw Network Socket

I am trying to see if there is a way to know when the SitCore device is being Pinged. I tried to open a socket with SocketType.Raw and ProtocolType.Icmp.

var socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);

It throws a CLR_E_INVALID_OPERATION (1) error.

Is what I want to do possible in TinyCLR?

Not possible today. The long mechanism is done internally in the networking stack, with no access from c#