AGS 10.1 geoprocessing service returning the wrong URL

Discussion created by dmonego on Apr 11, 2013
Latest reply on Apr 15, 2013 by robertwjones
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:

[INDENT]Output_File = os.path.join(arcpy.env.scratchFolder, output)
#Export the file ...
arcpy.SetParameterAsText(8, Output_File)[/INDENT]

This works fine in most situations, and returns a url that looks like this:


but on one client's network, the service returns something that looks a lot more like this:

[INDENT]http://(local server name).(internal domain name).local:6080/arcgis/rest/directories/arcgisjobs/...[/INDENT]

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?