title: How to configure ports for hostname and localhost?
body: <p>I am running a browser on the single node Hortonworks Hadoop cluster(HDP 2.3.4) on Centos 6.7:</p>
  
  <ul>
  <li>With <code>localhost:8000</code> and <code>&lt;hostname&gt;:8000</code>, I can access Hue. Same works for Ambari at 8080</li>
  <li>However, several other ports, I only can access with the hostname. So with  e.g. <code>&lt;hostname&gt;:50070</code>, I can access the namenode service. If I use <code>localhost:50070</code>, I cannot setup a connection. So I assume localhost is blocked, the namenode not.</li>
  </ul>
  
  <p>How can I set up that <code>localhost</code> and <code>&lt;hostname&gt;</code> have the same port configuration?</p>