Sending packets to server