[mapserver-users] map not available over the Lan or internet
Adrian Popa
adrian_gh.popa at romtelecom.ro
Wed Aug 12 06:43:10 PDT 2009
I forgot... windows automatically replaces IP addresses with hostnames
when hostnames are known. SubranilBasu is your hostname and it matches
your ip address 127.0.0.1.
The concept of listening on all/an interface is the following: when you
start a server it can accept queries from all interfaces (it's listening
on ip1:8085, ip2:8085, 127.0.0.1:8085 - or a more compact way of writing
this is: 0.0.0.0:8085). The server can be started listening only on one
interface (for instance listening for queries on the loopback interface
127.0.0.1) - and it will not reply to queries that come on other interfaces.
This is what the Listen directive does in apache. I think that it should
be Listen 0.0.0.0:8085 if you want to enable the web server on all
interfaces (but I haven't checked).
Regards,
Adrian
sunny74 wrote:
> Hi Adrian,
>
> I did as u suggested and next to port 8085 I see SubranilBasu:0 LISTENING
> and not 0.0.0.0 or 127.0.0.1
> as u have stated.
>
>
> I don't understand the terms "listening on all interfaces" and "listening
> only on loopback".Could u pls explain them.
>
> Thanks for your reply.
>
> Regards.
>
>
>
> Adrian Popa wrote:
>
>> Make sure your server listens on all interfaces, not only on loopback.
>> You need to check apache's config for this and restart the server.
>>
>> Also, you can do netstat -a (I think) on your windows system and look
>> for your port (8085). If next to it you see 0.0.0.0, it means the server
>> is listening on all interfaces. If you see 127.0.0.1, it means the
>> server is listening only on loopback.
>>
>> Good luck.
>>
>>
>> sunny74 wrote:
>>
>>> Hi,
>>>
>>> I am displaying map using mapserver and openlayers in aspx(ASP.NET) page.
>>> But problem is that the map is displayed only on local machine and not
>>> from
>>> a remote machine on the Lan or Internet.
>>> On doing some r&D i found that if the url is given as in a local machine
>>> i.e
>>>
>>> http://localhost:8085/cgi-bin/mapserv.exe?map=WR_Shape/wrmap.map&mode=map
>>>
>>> Then map is displayed.
>>> But if it is given like this,
>>>
>>> http://172.16.128.173:8085/cgi-bin/mapserv.exe?map=WR_Shape/wrmap.map&mode=map
>>>
>>> then it is not.
>>>
>>> So how can I get mapserver to display map with IP.
>>>
>>> Thanks for your replies.
>>>
>>>
>> --
>> ---
>> Adrian Popa
>> NOC Division
>> Network Engineer
>> Divizia Centrul National de Operare Retea
>> Departament Transport IP & Metro
>> Compartiment IP Core & Backbone
>> Phone: +40 21 400 3099
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090812/b83be2f3/attachment.htm>
More information about the MapServer-users
mailing list