socket server to receive packet