isPortAvailable

Check if a specified port is available.

Return

Throwable instance received from ServerSocket when try to bind the port, or NULL otherwise if port is free.