Check server status when connecting