title: How to get the serving host and port in python pyramid application?
body: <p>I am trying to get the serving host and port of a pyramid applications using:</p>
  
  <pre><code>settings = get_current_registry().settings
  </code></pre>
  
  <p>But how can I get the host?</p>
  
  <p>I tried:</p>
  
  <pre><code>settings.get('host')
  </code></pre>
  
  <p>But I am getting <code>None</code></p>
  
  <p>Any help is much appreciated.</p>