static void Main(string[] args) { var serverAppHost = new ServerAppHost(); serverAppHost.Init(); serverAppHost.Start("http://localhost:81/"); //Starts HttpListener listening on 81 Console.WriteLine("PowerDeploy server started on localhost:81"); Console.ReadLine(); //Block the server from exiting (i.e. if running inside Console App) }