Fixed bugs with udp sockets and binding.