Find an open port in Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|Use socket's built in ability to find an open port.|
|sock = socket.socket()|
|_, port = sock.getsockname()|