In my firewall (Windows), I added rules for specific application. For example, "C:/A.exe" can open a TCP socket on the port 1234, but others application cannot. I need to be able, from an other app (will be C#), to see if "A.exe" can create a TCP socket on 1234. I tried looking at Netsh, Netcat or Powershell, I cannot find any solution. My only idea is to create a pipe between my app and A.exe, so my app can ask A.exe to check if it can create a socket on the specific port, and answer with the result...
Does anyone has an idea ? :/
Thanks