title: Unable to use WebService specifing the URI through code
body: <p>I have two PCs conected with a LAN. Firewall ports are opened.
  I'm running a WebService on A machine, using IIS. Of course, I can access the WebService (on A) through the Web Browser on the B machine, so I'm sure the WebService can be accessed remotely.</p>
  
  <p>Now, I'm running a console app on B machine, developed in vb.net, which will access the WebService of A machine.</p>
  
  <p>Both, the console app and the WebService, has been developed on VS2010.</p>
  
  <p>Creating the reference on the project, I can see and use the WebService. But I need to specify on code the URI due to the WebService may change its location.</p>
  
  <p>The code indicating the URI manually:</p>
  
  <blockquote>
    <p>Dim myService As New MiServicioWeb.WebServiceSoapClient("192.168.1.13:8080")</p>
  </blockquote>
  
  <p>This line throw an exception with the message that did not find any element with the name indicated. I have tried too, without success, the following lines:</p>
  
  <p>This one:</p>
  
  <blockquote>
    <p>Dim myService As New MiServicioWeb.WebServiceSoapClient("192.168.1.13")</p>
  </blockquote>
  
  <p>And this one:</p>
  
  <blockquote>
    <p>Dim myService As New MiServicioWeb.WebServiceSoapClient("192.168.1.13:8080/ServicioWeb.asmx")</p>
  </blockquote>
  
  <p>But the result is always the same.</p>
  
  <p>Some user (raja) wrote an answer a few days ago indicating that this should work, but I don't know the reason why does not work in my case.</p>
  
  <p>As I said before, if I create the reference on the project, and I use the following line of code:</p>
  
  <blockquote>
    <p>Dim myService As New MiServicioWeb.WebServiceSoapClient()</p>
  </blockquote>
  
  <p>It works!, but what I need is to set the URI manually...</p>
  
  <p>Some help will be thankful.</p>