<p dir="ltr">Hi Peter, <br>
Ok I will try to create a fix for it and create a pull request. <br>
Cheers<br>
Jan</p>
<div class="gmail_quote">El 15/11/2013 10:38, "Peter K" <<a href="mailto:peathal@yahoo.de">peathal@yahoo.de</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>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 :) !<br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Poshan,
<div><br>
</div>
<div>I think you will have to adapt the file </div>
<div>src/main/webapp/js/main.js in the web project and change
the host on line 30 to your host:<br>
</div>
<div><span> </span><span>host</span><span>
</span><span>=</span><span>
</span><span>"<a href="http://localhost:8989" target="_blank">http://localhost:8989</a>"</span><span>;</span></div>
<div><span>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. </span></div>
<div><span>If
you are running it on the web, you will have to place your
domain name.</span></div>
<div><span><br>
</span></div>
<div><span>Best
regards</span></div>
<div><span><br>
</span></div>
<div><span>Jan</span></div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/11/15 Poshan Niraula <span dir="ltr"><<a href="mailto:poshan.niraula@gmail.com" target="_blank">poshan.niraula@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>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 <br>
"GraphHopper API offline? <br>
</div>
<a href="http://localhost:8989" target="_blank">http://localhost:8989</a>"<br>
</div>
Why is this?<br>
<div><br>
</div>
</div>
<br>
_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
GraphHopper mailing list
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div>