[GraphHopper] problem while running graphhopper in local network

Poshan Niraula poshan.niraula at gmail.com
Fri Nov 15 08:53:19 UTC 2013


Hey Jan,

Thank you very much it worked.

Regards
Poshan


On Fri, Nov 15, 2013 at 1:47 PM, Jan Schulte <jan at janschulte.com> wrote:

> Hi Poshan,
>
> I think you will have to adapt the file
> src/main/webapp/js/main.js in the web project and change the host on line
> 30 to your host:
>     host = "http://localhost:8989";
> Since the JS is running locally in your browser, it tries to access the
> server on this device. So if you use it in your local network only, it will
> have to be the network adress of the server, e.g. 192.168.0.1.
> If you are running it on the web, you will have to place your domain name.
>
> Best regards
>
> Jan
>
>
> 2013/11/15 Poshan Niraula <poshan.niraula at gmail.com>
>
>> I am able to successfully run graphhopper in localhost. But when i tried
>> to access graphhopper server from another device in my local network i am
>> connected to graphhopper server but i get the following message
>> "GraphHopper API offline?
>> http://localhost:8989"
>> Why is this?
>>
>>
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131115/2ad8f52c/attachment.html>


More information about the GraphHopper mailing list