Implement server ping method.