[GraphHopper] problem while running graphhopper in local network

Peter K peathal at yahoo.de
Fri Nov 15 09:38:02 UTC 2013


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
> <mailto: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 <mailto: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/b39dde65/attachment.html>


More information about the GraphHopper mailing list