'Python run socket at startup and the rest of the program when i want

Can you help me? I have a problem with my python project I have to start a socket that listens as a server at startup but then when I want I have to be able to connect to administer the server how can I create a socket that starts at startup and be able to interact with the program when I want??



Solution 1:[1]

I Just want to Say of there's a methot to start a socket.bind at startup and the actual interactive program after

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fhsjdsmdmxnd