Possible fix for comparing socket address