change socket type to SOCK_DGRAM