Socket listener(TCP) for listening incoming connections not working after Obfuscation

Hi,

I have developed a Windows Desktop application using C# .NET for listening a Socket for a given IP Address and Port.
I used .NET Socket class for this and followed the code here https://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener(v=vs.110).aspx

I used SmartAsssembly Standard Version 6.9.0.114 for obfuscating my application.
this application works good when it is not obfuscated. After obfuscation, i face the below problem
Listener has successfully Started. But it is not accepting any client connection (from the given example code in the given link "server.AcceptTcpClient();" this line does not work.

I am in a need to complete this socket listening and move it to production further in a day.

Can anyone please provide a solution for this?

Thanks.
Tagged:

Comments

  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi @Petchi,

    What is the error message when the call to server.AcceptTcpClient() fails?

    Just to confirm which feature is causing this, can I just double check--does the problem go away when you disable obfuscation and just build through SmartAssembly without any protection options turned on?

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.