Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,
I am facing same issue which is mentioned in these questions and I can delete it if the same answer applies to this, however I am not able to find solution for myself through these answers.
https://stackoverflow.com/questions/12076686/c-sharp-udp-packetloss-though-all-packets-arrive-wireshark
https://stackoverflow.com/questions/26540513/net-udp-packet-loss-though-all-packets-arrive-wireshark-receivebuffer-not-t

Getting packets at WireShark but not receiving few packets at .NET Socket UdpClient end. Missing packets nos. vary sometimes I loose 1 out of 499 (158 byte of each), sometimes 4-5 out of 499.
I increased the the buffer size but packet loss was not avoided.

If anyone point me in correct direction.

Thanks

What I have tried:

https://stackoverflow.com/questions/12076686/c-sharp-udp-packetloss-though-all-packets-arrive-wireshark
https://stackoverflow.com/questions/26540513/net-udp-packet-loss-though-all-packets-arrive-wireshark-receivebuffer-not-t
Posted
Updated 22-Jun-20 0:28am

1 solution

UDP messages are not guaranteed to be received in the correct order, or even received at all. Switch to TCP if you require guaranteed delivery.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900