hoops_ai.insights.is_port_available

hoops_ai.insights.is_port_available(port, host='127.0.0.1')

Check if a port is available for binding.

Parameters:
  • port (int) – Port number to check

  • host (str) – Host address to check (default: ‘127.0.0.1’)

Returns:

True if port is available, False otherwise

Return type:

bool