A community member has associated this post with a similar question:
UDP issue with Visual Studio 2017 Application

Only moderators can edit this content.

UDP issue with Application built on VS2017

Sulabh Srivastava 1 Reputation point
2022-09-30T07:33:33.223+00:00

Hi,

I have a udp client application which is built using VC++/MFC library on Visual Studio 2017. This application works well and receives messages in all my office laptops in Germany and India, but same application doesn't work for some other country sites like Istanbul and Bangkok. All laptops have WINDOWS 10 running on them.
I can see UDP messages in wireshark but this doesnt reach to application, error shown on wireshark 'BAD UDP LENGTH' whether I send 1 byte or 100 byte error remains same.

Interesting point I have same application built on Visual Studio 2010 which works and receives all messages.
I wrote several test UDP receiver to check is its Visual Studio compatibility issue with some WINDOWS 10 laptop. Any application C++, MFC, C# which was built on 2017 not receiving data from network however if I send message from same machine it receives.
Also I have python listener which receives all messages.

Can anyone help to rectify the issue as I want to run application built on 2017 ?

Thanks.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
938 questions
0 comments No comments
{count} votes