Making a packet to send to the server.