Fix the usage of socket lookup based on ports
Fix the usage of socket lookup based on ports

sport and dport mean different things based on whether the entity
is a remote or a local one.

saminiir/level-ip,saminiir/level-ip