Trying to detect server address automatically