Hey guys, I'm trying to send a single udp datagram from a client to a remote server. When i try to send a single data (a string) the server receive nothing. So I have tried with a loop that send 1000 times the same data. On the server I count how many times a UDP datagram is received. This number is between [300-305], so about 700 packets are lost.
I know that UDP is connectionless, but this difference it's too hight. Is it normal?
Thanks in advance
PS
(the client runs on my own laptop and the server runs on a virtual machine also on my laptop)
If you are sending UDP packets to your own computer I don't think you should loose any packets at all. Maybe you are sending the packets too fast. Try putting a small delay before sending each packet.