title: WCF: Service References in production
body: <p>I have some doubts about using Service References for an application that will be deployed to different customers. It's a WCF service on vb.net that will be hosted in a Windows Service, and it will be used by very different customers with different IP Addresses. Different environments, so to speak.</p>
  
  <p>I've already made the server and the client. They work just fine using Service References on the client, but since these need the URL of the service (which will have this structure: <em>net.tcp://SomeHost:6666/SomeService</em>), the question is: what can I do to use the Service References on the customer's environment? I'm thinking about something like changing its URL programatically, but I don't know if it's possible.</p>
  
  <p>Of course, the hostname will change from customer to customer, but the Service References are static. I thought of using a different approach, such as: <a href="http://mstecharchitect.blogspot.com.ar/2009/01/invoking-wcf-service-without-service.html" rel="nofollow">http://mstecharchitect.blogspot.com.ar/2009/01/invoking-wcf-service-without-service.html</a>. But this would make me lose the benefits of the Service Reference, which, as I understand, creates the needed proxy so I can use it on the client side.</p>
  
  <p>Whatever else information you need to help me, don't hesitate to ask. And thanks in advance!</p>