title: How to set preferIPv4Stack property for JNLP app?
body: <p>I need to set java.net.preferIPv4Stack=true to an app started via JNLP (javaws and applet)</p>
  
  <p>Tried those, without luck...</p>
  
  <pre><code>&lt;j2se ...java-vm-args="-Djava.net.preferIPv4Stack=true" /&gt;
  &lt;property name="java.net.preferIPv4Stack" value="true"/&gt;
  System.setProperty("java.net.preferIPv4Stack", "true");
  </code></pre>
  
  <p>The only way i could make it work was seeting when launching javaws from local filesystem:</p>
  
  <pre><code>javaws -J-Djava.net.preferIPv4Stack=true myapp.jnlp
  </code></pre>
  
  <p>What is not possible on a applet or URL.</p>
  
  <p>How should i set this property?</p>