Mcafee is blocking Tcp connection
I am using System.Net.Sockets.Socket.Connect to connect to a remote server.
I see the call succeeds on most systems, but fails on a few.
I tried to debug this issue and noticed that there was a problem with the installed McAfee Antivirus system. The connection was successful if I disable Access Protection in the McAfee Virus Scan Console.
But due to client policy, I cannot disable McAfee Access Protection. According to them, they can launch other programs that connect to TCP socket with other servers.
What could be wrong for my application? Is there a way to specify a blocking bypass for my application?
source to share
The problem is that your antivirus is blocking your application. If you want to specifically allow the app for you. follow these steps:
Step 1: In the McAfee antivirus folder, from the start button, go to the virusscan console .
Step 2: Double click on virusscan console access protection . Now select Ant standard virus protection . In the window on the right, select Prevent IRC Communication and click Edit .
Step 3: A new window will open. This field contains a field for entering Processes to exclude . Enter the name of the exe file . for example: myApplication.exe. Then click "Apply" and that will solve your problem.
source to share