UDP issue with Visual Studio 2017 Application

Sulabh Srivastava 1 Reputation point
2022-09-30T07:38:12.68+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.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,274 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,371 Reputation points
    2022-10-04T07:59:16.743+00:00

    Hello there,

    Have you tried opening port 8080 in Windows defender ?

    As the same application works in other locations this must be the firewall rule. Meanwhile, you can use the debugger to find more information about this behavior.

    The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue. https://learn.microsoft.com/en-us/answers/questions/425760/c-udp-communication-program-runs-on-laptop-but-not.html

    ---------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–