I hope to use only one IP address, binding different ports to provide different services, such as web use 8000, server 8001,
This how to implement, I met the current server starts, as long as the restart web services (flask), server side error, will prompt
OSError: [98] Errno Address already in use
CodePudding user response:
These two services is open in the same process, if no problem, different processIs not clear flask did provide a similar solution, can provide different communication schemes, such as can the response page message, also can process the background of the socket communication,