<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">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
cite="mid:CAFTm8bjAcOveLPY9dpvD0VqRtRXnXvW8dBdunsu6nEciXhQfXg@mail.gmail.com"
      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
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">    </span><span
            class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">host</span><span
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">
          </span><span class=""
            style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">=</span><span
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">
          </span><span class=""
            style="color:rgb(221,17,68);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">"<a
              moz-do-not-send="true" href="http://localhost:8989">http://localhost:8989</a>"</span><span
            class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">;</span></div>
        <div><span class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">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 class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">If
            you are running it on the web, you will have to place your
            domain name.</span></div>
        <div><span class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre"><br>
          </span></div>
        <div><span class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">Best
            regards</span></div>
        <div><span class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre"><br>
          </span></div>
        <div><span class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">Jan</span></div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">2013/11/15 Poshan Niraula <span
              dir="ltr"><<a moz-do-not-send="true"
                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 moz-do-not-send="true" 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 moz-do-not-send="true"
                href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
              <a moz-do-not-send="true"
                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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>