qgis – How to Resolve GeoServer Not Responding Issue on AWS

amazon-web-servicesgeoserverqgis

I made a WMS host with AWS. The WMS work with link below

localhost:8080/geoserver/OSM/wms?

But I'd like to reach it out of the network with this link and QGIS:

http://ec2-xxx-xxx-xxx-xxx.us-east-2.compute.amazonaws.com:8080/geoserver/OSM/wms?

Failed to download capabilities

This is also not work:
http://ec2-xxx-xxx-xxx-xxx.us-east-2.compute.amazonaws.com:8080/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities

What is my mistake?

Best Answer

Remote Access Configuration

  1. Open ports 8080 for remote GeoServer access on Windows Server: Windows Administrative Tools > Windows Firewall with Advanced Security > Inbound Rules > New Rule > Port TCP > 8080 > Allow > Domain/Private/Public > “8080 GeoServer”

  2. Edit the line of C:\Program Files (x86)\GeoServer 2.xx.0\etc\jetty-http.xml to allow access by all IP addresses (or whatever range that you want):

Note that before remote access through port 8080 is possible, this port must be configured in the EC2 Security Group settings, e.g.,

Custom TCP Rule TCP 8080 0.0.0.0/0 Port for GeoServer

Related Question