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 mean that the service is listening on all IP addresses?
Is there a way I can get the service to only listen on the IP specified (12.34.56.67:9999)?
Thanks