title: Publishing a WS with Jax-WS Endpoint
body: <p>I built a minimal web service and published it using javax.xml.ws.Endpoint.
  If I try to get the WSDL at 
  <code>http://localhost:1234/AddService?wsdl</code> it works fine.</p>
  
  <p>Trying to recieve it at <code>http://192.168.0.133:1234/AddService?wsdl</code>, I don't receive anything.
  This address is the same as localhost.</p>
  
  <p>Is there a posibiility to publish a webservice without providing the address?</p>
  
  <pre><code>package test;
  
  import javax.jws.WebMethod;
  import javax.jws.WebService;
  import javax.xml.ws.Endpoint;
  
  @WebService
  public class AddService {
  
      @WebMethod
      public int add(int a, int b){
          return a+b;
      }
  
      public static void main(String[] args ){
          Endpoint.publish("http://localhost:1234/AddService", new AddService());
      }
  }
  </code></pre>
  
  <p>Changing the code to </p>
  
  <pre><code>Endpoint.publish("http://192.168.0.133:1234/AddService", new AddService());
  </code></pre>
  
  <p>gets me the wsdl on the IP address but not on localhost.</p>
  
  <p>Isn't there a posibility to just define the port?</p>