|So how to stop pinging service from client to server.|
Means how to stop client server communication
These are two different things. Which is it you would like to accomplish?
NOTE: Stopping all communication from client to server doesn't make much sense as it kind of negates the whole point of creating a network.
It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.