major revamp of lan handling, splitting sockets and adding multicast support