<!-- Warning: The suggested title contains the alert rule name. This can expose security information. --> Security concern: https://github.com/ansys/pyfluent/security/code-scanning/1 Also, after getting the free port number, the socket should be immediately closed