static void Main(string[] args) { string localAddress = GetLocalIPAddress(); Console.WriteLine(localAddress); HttpServer httpServer = new SimpleHttpServer(8080); Thread thread = new Thread(new ThreadStart(httpServer.listen)); thread.Start(); }