server url detection