public HTTPServer(int port) { string prefix = string.Format("http://{0}:{1}/", Settings.Default.AddressToListenOn, port); httpListener = new HttpListener(); httpListener.Prefixes.Add(prefix); }