I am using ArcMap 10.5, trying to create a map service. I go into File....Share As....Service. I select 'Publish a service' and press the Next button. I then select the button to the right of the dropdownlist that says 'Select an existing connection or create new one'. The 'Add ArcGIS Server' form is displayed with the 'Publish GIS services' radio button selected. I select the Next button, and I enter the server URL of my server (http://myservername.domain.com:6080/arcgis). After I enter my credentials for authentication I press the Finish button I get the following error : We were unable to connect to: http://myservername.domain.com:6080/arcgis. Error: Proxy server got bad address from remote server (verify the server is running). (status code 504). I am not sure where to go from here. When I enter the address into my browser, I don't get any errors. I verified that port 6080 is listening on the server. Any ideas. Thanks.