modify the way to retrieve Server URL