fix local peer discovery - receive and send on all interface if no interface was specified
move set_port function to utils
add comments