title: Ubuntu local IP address does not resolve
body: <p>I set a Hugo web server, which listen on localhost:30000.
  The ubuntu machine has the 192.168.2.137 address.</p>
  <p>When i do:</p>
  <pre><code>curl http://localhost:30000/ -&gt; OK
  curl http://127.0.0.1:30000/ -&gt; OK
  </code></pre>
  <p>but,</p>
  <pre><code>curl http://192.168.2.137:30000/ -&gt; curl: (7) Failed to connect to 192.168.2.131 port 30000: Connection refused
  </code></pre>
  <p>What could be the reason for that?</p>
  <p>My /etc/netplan/00-installer-config.yaml looks like:</p>
  <pre><code>network:
  version: 2
  renderer: NetworkManager
  ethernets:
    enp0s3:
      dhcp4: false
      addresses: [192.168.2.137/24]
      gateway4: 192.168.2.1
      nameservers:
        addresses:
          - 8.8.8.8
    lo:
      renderer: networkd
      match:
        name: lo
      addresses:
        - 192.168.2.137/24
  </code></pre>
  <p>I also add an entry to /etc/hosts:</p>
  <pre><code>192.168.2.137 localhost
  </code></pre>