By default, ArcGIS Server for Java listens on port 6080
and its REST services directory is accessible at the path /arcgis/rest/services
. So, given a host name, chances are you can browse its services directory using the following URL structure:
http://server.example.com:6080/arcgis/rest/services
From there, you'll find a list of services and/or folders with services in them. The path to a service's MapServer follows this format:
http://server.example.com:6080/arcgis/rest/services/foldername/servicename/MapServer
or, if it's not in a folder at all, just:
http://server.example.com:6080/arcgis/rest/services/servicename/MapServer
EDIT: As mwalker pointed out below, this is only the case for the Java version of ArcGIS Server. The .NET version listens on port 80 via IIS, so the base URL should simply be:
http://server.example.com/arcgis/rest/services
EDIT #2: It looks like at version 10.1 of ArcGIS Server, both the Windows and Linux versions listen on port 6080 by default. If you want another port to be used, you need to install the ArcGIS Server Web Adaptor. For more information, see: http://resources.arcgis.com/en/help/main/10.1/index.html#/Migration_to_ArcGIS_10_1_for_Server/0154000002p0000000/
Best Answer
I couldn't find an easy way to do it. I had to do it the hard way. If you have to, here are some clues to do it.
You can also do this using the web interface of ArcGis Server, if you don't know much about programming.