Is there any way to determine if Internet access is blocked by Windows firewall?

I have a program that accesses an online server for information. 98% of the time there is no problem. But it seems that 2% are being blocked by the  Windows firewall. Particularly with Windows 10.

Is there any way programmatically to determine whether Internet access is being blocked by the firewall? If so this would be very helpful to avoid support questions.

Any help would be appreciated.
TheIronDukeAsked:
Who is Participating?
 
Daniel Van Der WerkenIndependent ConsultantCommented:
You may have possible various options.

One is to use the Windows Firewall Log to determine what is being blocked.

Another might be to perform some fancy COM Interop programming to examine this issue.
0
 
TheIronDukeAuthor Commented:
Perfect. Just what I needed. Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.