Ping server to avoid timeouts