detect server