I want to avoid hard coding of the port number, as in the following:
httpd = make_server('', 8000, simple_app)
The reason I create the server this way is because I want to use it as the “core” for the Adobe AIR application so that it communicates using PyAMF. Since I run this on the client side, it is very possible that any port that I define is already in use. If there is a better way to do this and I am asking the wrong question, please let me know.
source
share