title: How to force Jetty to use IPv4
body: <p>I am using standalone jetty 9.1.5 to deploy a java webapp.
  I want jetty to use IPv4 instead of IPv6 but I cannot manage to do it!
  When I type <code>netstat -tnlp</code> I can see the following result:</p>
  
  <pre><code>tcp6       0      0 127.0.0.1:554           :::*                    LISTEN      27535/java
  </code></pre>
  
  <p>... So that tells me jetty is using IPv6 even when on my <code>jetty-http.xml</code> file I have:</p>
  
  <pre><code>&lt;Set name="host"&gt;&lt;Property name="jetty.host"  default="127.0.0.1" /&gt;&lt;/Set&gt;
  </code></pre>
  
  <p>I am also starting jetty with the following java options:</p>
  
  <pre><code>-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses
  </code></pre>
  
  <p>... but to no avail; Jetty keeps using IPv6 and I have not been able to force it to use IPv4.
  Any ideas?</p>