I have an image export geoprocessing service that runs on ArcGIS server 10.1. It works by writing an image out to the scratch folder, and returning the location of that image.
Basically just this:
Output_File = os.path.join(arcpy.env.scratchFolder, output) #Export the file ... arcpy.SetParameterAsText(8, Output_File)
This works fine in most situations, and returns a url that looks like this:
but on one client's network, when they connect to our hosted server, the service returns something that looks a lot more like this, despite the fact that the same instance of the service returns normally otherwise:
http://(local server name).(internal domain name).local:6080/arcgis/rest/directories/arcgisjobs/...
Is this the result of a misconfiguration on the server? And is there a reason why it would return the local network name of the server in some contexts?