Self Hosting WCF Application in console app ServiceHost host = new ServiceHost(typeof(UserDetails));
host.Open();
Console.WriteLine("Service is running...");
Showing Configured Endpoints foreach (ServiceEndpoint se in host.Description.Endpoints)
Console.WriteLine(se.Address.ToString());
Console.ReadLine();