I have a problem trying to work with a remote wms server.
Using a local wms (on our network) everything works well however when trying to use a remote wms I get an 'unable to connect to the remote server' message when doing a Refresh. In both situations the address of the server is given in IPv4 format like; xxx.xxx.xxx.xxx:8080/geoserver
As part of trying to understand the problem I used the wmsRasterLayer.GetRequesrUrl function. For the in office server the generated URL looked good, but for the remote server the IP part of the URL was replaced by localhost. I also copied the generated URL for the remote server directly into the address line of internet explorer and it failed. I then replaced localhost with the actual IP and it returned a bit of a map (as expected).
Interestingly I had no problem using either server to get specific polygons and lines using wfs.
Do you have any ideas why the IP address is getting substituted for localhost? or suggestions for what I might be doing wrong?
Thanks,
Jonathan