What is NetworkRule to exclude reading from particular port on localhost?

Currently I am using below network rule to read all traffic. But I want to skip to read particular port on localhost. What is NetworkRule to exclude reading from particular port on localhost?

let networkRule = NENetworkRule(remoteNetwork: nil,
                                remotePrefix: 0,
                                localNetwork: nil,
                                localPrefix: 0,
                                protocol: .any,
                                direction: .any)


What is NetworkRule to exclude reading from particular port on localhost?
 
 
Q