[GraphHopper] problem while running graphhopper in local network

Jan Schulte jan at janschulte.com
Fri Nov 15 19:00:22 UTC 2013


Hi Peter,
Ok I will try to create a fix for it and create a pull request.
Cheers
Jan
El 15/11/2013 10:38, "Peter K" <peathal at yahoo.de> escribió:

>  I think one could improve this with some JS magic which finds out where
> it is hosted. So you won't need this change. As always: would like to have
> a pull request - should not be much work :) !
>
> Regards,
> Peter.
>
>  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 listGraphHopper at openstreetmap.orghttps://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/3be048cf/attachment.html>


More information about the GraphHopper mailing list