Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 62001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:24:26+00:00 2026-05-10T18:24:26+00:00

Does anyone know if it is possible to reliably determine (programattically C/C++…) whether or

  • 0

Does anyone know if it is possible to reliably determine (programattically C/C++…) whether or not a firewall or IP filtering software is installed on a Windows PC? I need to detect whether a certain server IP is being blocked in my client software by the host OS.

I don’t need to worry about external hardware firewals in this situation as I have full control of this. It is only software firewalls that I am concerned with. My hope was that I could iterate the windows network stack or NDIS interfaces and determine this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:24:27+00:00Added an answer on May 10, 2026 at 6:24 pm

    After reading some of your comments in reply to other answers, I think this might actually be closer to what you’re looking for. It might not catch every type of firewall but any major firewall vendor should be registered with the Security Center and therefore detected with this method. You could also combine this with some of the other answers here to give yourself a second level of verification.

    Detecting running firewalls in windows

    It’s an Expert’s Exchange post so you may not be able to read the thread. Just in case, I’ve copied and pasted the relevant info. It’s in VBScript but it should point you in the right direction as far as what WMI namespaces you can use.

    KemalRouge: I’ve just solved this problem with some help from a colleague. He pointed me in the direction of a knowledge base article, which pointed out that this information was stored in the WMI database

    Basically, it’s possible to query the WMI in a few lines of code to find out what firewalls/anti-virus software is being monitored by the Security Center, and the status of this software (i.e. enabled or not).

    Anyway, if you’re interested, here’s some VB code I used to test this out (you’ll need a reference to "Microsoft WMI Scripting V1.2 Library"):

    Private Sub DumpFirewallInfo()  Dim oLocator    As WbemScripting.SWbemLocator Dim oService    As WbemScripting.SWbemServicesEx Dim oFirewalls  As WbemScripting.SWbemObjectSet Dim oFirewall   As WbemScripting.SWbemObjectEx Dim oFwMgr      As Variant             Set oFwMgr = CreateObject("HNetCfg.FwMgr")         Debug.Print "Checking the Windows Firewall..."     Debug.Print "Windows Firewal Enabled: " & oFwMgr.LocalPolicy.CurrentProfile.FirewallEnabled     Debug.Print ""         Set oFwMgr = Nothing             Debug.Print "Checking for other installed firewalls..."         Set oLocator = New WbemScripting.SWbemLocator     Set oService = oLocator.ConnectServer(".", "root\SecurityCenter")     oService.Security_.ImpersonationLevel = 3      Set oFirewalls = oService.ExecQuery("SELECT * FROM FirewallProduct") ' This could also be "AntivirusProduct"         For Each oFirewall In oFirewalls         Debug.Print "Company:       " & vbTab & oFirewall.CompanyName         Debug.Print "Firewall Name: " & vbTab & oFirewall.DisplayName         Debug.Print "Enabled:       " & vbTab & Format$(oFirewall.Enabled)         Debug.Print "Version:       " & vbTab & oFirewall.versionNumber         Debug.Print ""     Next oFirewall         Set oFirewall = Nothing     Set oFirewalls = Nothing     Set oService = Nothing     Set oLocator = Nothing  End Sub 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 105k
  • Answers 105k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First, if you have already run the migrations generated by… May 11, 2026 at 8:46 pm
  • Editorial Team
    Editorial Team added an answer Well, depending on how varied your HTML is, you can… May 11, 2026 at 8:46 pm
  • Editorial Team
    Editorial Team added an answer If the upgrade of the DB takes to long time… May 11, 2026 at 8:46 pm

Related Questions

Does anyone know if it is possible to reliably determine (programattically C/C++...) whether or
For part of a web application the user needs to import some data from
I'm trying to track down possible causes of my app not being able to
I am messing around with the Indy 10 supplied with Delphi 2009 and am
Does anyone know if it is possible to detect whether the browser has closed

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.