always try to initialise server URL in getUrl