A windows server 2016 machine is opened on Aliyun. After the remote desktop is connected, open cmd to run a flask program (that is, a simple development server, app.run ()), is normal at this time, and there is no problem with external network access.
when the original cmd window is running, the remote desktop is closed and app can still be accessed for a short time, but it cannot be accessed after a few hours. This has happened several times. What is the cause of the problem? How can it be solved?