Automatically select supported protocol.