C# not my native language
So:
Check if these posts help:
Try just a also:
3ventic Oct '16
You only need to send back PONG\r\n and it’ll work. There’s no need for the address after it.
Personally I’m using a library (for my language(s)) and the library handles ping/pong’s for me