title: Links of "href=http://localhost/~~~" in HTML code at server cannot be reached from client
body: <p>I'm new to HTML world.  </p>
  
  <p>I created a <em>"example.html"</em> web page at server,<br>
  which contains following <em>a tag</em> links.    </p>
  
  <pre><code>...
  &lt;nav&gt;
      &lt;ol&gt;
          &lt;li&gt;&lt;a href="http://localhost/link1.html"&gt;link1&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="http://localhost/link2.html"&gt;link2&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="http://localhost/link3.html"&gt;link3&lt;/a&gt;&lt;/li&gt;
      &lt;/ol&gt;
  &lt;/nav&gt;
  ...
  </code></pre>
  
  <p>If I open this <code>"http://localhost/example.html"</code> page on server's web browser and click on links(link1~link3), they work.  </p>
  
  <p>The problem is that they DO NOT WORK on client's web browser.  </p>
  
  <p>I port-forwarded my server computer and opened <code>"example.html"</code> from client,<br>
  through <code>"http://myaddress.com:1234/example.html"</code>  </p>
  
  <p>Temporarily, I solved it by changing<br>
  every link in server's code,  <code>"http://localhost/~~~.html"</code><br>
  to <code>"http://myaddress.com:1234/~~~.html"</code>.  </p>
  
  <p>However, I want to enable client to access every link in server's code written as <code>"http://localhost/~~~.html"</code>  </p>
  
  <p>Is it the problem of port-forwarding? or something else?</p>
  
  <p>Thank you so much.</p>