clean server url, add correct port