title: WCF, replacing 'localhost' with my IP or should I use NetTcpBinding?
body: <p>while continuing to learn WCF I've completes the Getting Started Tutorial from <a href="http://msdn.microsoft.com/en-us/library/ms734712.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms734712.aspx</a> and created my first server/client application. :)</p>
  
  <p>Yet now I'm wondering, what should I do if I want this application to run on different machines?</p>
  
  <p>from the server app:</p>
  
  <pre><code>Uri baseAddress = new Uri("http://localhost:8000/Server");
  ServiceHost selfHost = new ServiceHost(typeof(CalculatorService), baseAddress);
  </code></pre>
  
  <p>With what should I replace "localhost" if I want this service to be available from outside?
  I tried replacing it with my IP, but that didn't work.</p>
  
  <p>Any ideas?</p>
  
  <p>Also I heard that HttpBinding is kinda outdated and used mostly when a wcf application needs to communicate with a non-wcf app. while in a wcf-to-wcf communication NetTcpBinding should be used, is that so?</p>
  
  <p>Thanks! :)</p>