I realize this is an old post but I'm using the OPs ping class and it works fine except when run against the local machine.

I have an app I've developed that will run Radia commands as per selected option and run those commands against either a single machine or a list loaded from a text file. Either case, it errors on and tosses the debug to this line:
Code:
            ' Send the packet.
            If (SOCKET_ERROR = _socket.SendTo(_packet.Serialize(), _packet.Size(), 0, _server)) Then
                Return PING_ERROR
            End If
Anyone able to help me over this one item? I'm not well enough versed in the ICMP or TCP methods and parameters so any insights would be great.