Open a socket and compare source IP with destination in is_local_interface

This change fixes an issue where if /proc/sys/net/ipv4/ip_nonlocal_bind  is set to 1, remote
addresses where detected as local.

This fixes issue #222