embeddedwebserver
How can I create an HttpListener class on a random port in C#?
TcpListener will find a random un-used port to listen on if you bind to port 0. public static int GetRandomUnusedPort() { var listener = new TcpListener(IPAddress.Any, 0); listener.Start(); var port = ((IPEndPoint)listener.LocalEndpoint).Port; listener.Stop(); return port; }
What are the limitations of the flask built-in web server
There isn’t one right answer to this question, but here are some things to keep in mind: With the right amount of horizontal scaling, it is quite possible you could keep scaling out use of the debug server forever. When exactly you would need to start scaling (or switch to using a “real” web server) … Read more