title: Got Permission denied: connect while opening stream
body: <p>I have a strange behaviour with a java client that uses webservice stubs generated by wsimport.</p>
  
  <p>The client says sth about</p>
  
  <pre><code>Got Permission denied: connect while opening stream from http://dev:8080/LicenseServer/services/ServerImpl?wsdl
  </code></pre>
  
  <p>But I can open the URL in my webbrowser and the wsdl shows up correctly. Also I can control the Soap11Binding/HttpSoap11Endpoint from my browser.</p>
  
  <p>A hint maybe is that the hostname "dev" is resolved by C:\Windows\System32\driver\etc\hosts.</p>
  
  <p>Running the java-client from within the same network as the server makes no trouble.</p>
  
  <p>Maybe the stub's initialization process relies on a "real" DNS resolution of the hostname?</p>