check server connected