Adding WMS layer to AGOL from GeoServer (localhost)

1469
1
09-01-2017 06:40 PM
GayathriGanesan1
New Contributor II

Hello Everyone,

I am trying to add a WMS layer to AGOL that I published to GeoServer. GeoServer is hosted locally on my computer.

The URL I'm using is as follows:

http://localhost:8080/geoserver/NYC/wms?service=WMS&version=1.1.0&request=GetMap&layers=NYC:nyc_road... 

After having done some research I do realize that the localhost might be a problem too since that is protecting my published layer from being publicly available, and therefore, AGOL is failing to see it. Is there a way around it? How can I make the layer be publicly available or is there an alternative URL available by GeoServer that'll allow AGOL to see my layer?

Any advice is greatly appreciated!

Thank you,

Gaya 

0 Kudos
1 Reply
GayathriGanesan1
New Contributor II

The problem is resolved now. I replaced the localhost with my public IP (which you can find by typing into Google "What is my IP") and also made sure that my firewall is not blocking port, 8080. You can go to your firewall's ports and security tab, add port, 8080 and enable communication through it.

0 Kudos