In a C# program running on windows, I try to make an outgoing tcp connection on the local-area network. Obviously a connection can be refused because of several reason, but is there a way to know if a particular connection refusal is because of Firewall on the host window's computer where this program is running ?
PS: looking for programming solutions