I have a map that has one polygon layer, and a few feature layers that are controlled by the user with checkboxes. The page is on a server that allows browsing from within my company's network, and also anonymous access browsing from the internet. Within our network, I can see the polygon overlay, and any feature layer. But at home, using internet access, only the basemap works. I am calling the other layers using the convention of calling the service using the server name, such as
I am using ArcGIS JavaScript API to build the maps.
Question: do you guys use this convention to call map services on internet facing web sites? I do not know too much about networking, and the networking guys here cannot help.
you can abstract away the JS API from this question and just focus on the REST endpoints for your services. Mygisserver02 has to be exposed to the public internet in order for you to load a map service in REST outside your work network using a url like the following directly in the browser.
Usually this is accomplished by standing up a reverse proxy which forwards specific requests from the the outside world to an internal machine in a controlled manner.