Added support for checking port protocols when establishing connections.