title: In WCF app.config, why does the base address require the prefix http:// or net.tcp?
body: <p>I'm watching a webcast on WCF, and it has two endpoints defined in the app.config, one <code>netTcpBinding</code> and one <code>mexHttpBinding</code>.</p>
  
  <p>It also has two base addresses, <code>net.tcp://localhost:9000</code> and <code>http://localhost:8000</code>.</p>
  
  <p>I'm wondering how it associates those base addresses with the endpoints. Since your endpoint specifies tcp or http, why are the base addresses prefixed with net.tcp and http?</p>
  
  <p>If WCF uses net.tcp base addresses with netTcpBinding endpoints, what happens if you have two tcp endpoints that listen on 9000 and 9001, what would you put into the config to stop the conflict?</p>