Fix webserver ports when location changes