Automatically detects first available port.