Self Hosted WCF Data Service - Specify IP Address to Listen on?
问题 I've written a WCF Data Service that is self hosted in a Windows console application. The service is initialised with the following code: static void Main(string[] args) { DataServiceHost host; Uri[] BaseAddresses = new Uri[] { new Uri("http://12.34.56.78:9999")}; using (host = new DataServiceHost( typeof( MyServerService ), BaseAddresses ) ) { host.Open(); Console.ReadLine(); } } When I run this, the console app runs and appears to listen on 0.0.0.0:9999 and not 12.34.56.78:9999. Does this