LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Configure Firewall

I've seen some discussion on the ports needed to be open on a firewall for NI products to run. (see http://digital.ni.com/public.nsf/websearch/FE6A63983AC8289E86256B22005A067A?OpenDocument)
 
I was wondering if anyone has had experience or knows a way to programmatically (from Labview) on a Windows Xp SP2 firewall:
1. Check if these ports are allowed.
2. Change firewall settings to allow these ports.
 
R. Michael Churchill
0 Kudos
Message 1 of 5
(3,866 Views)
Actually I hope nobody knows. If it was that easy (or even possible) to configure a firewall programmatically then every program could open any ports which would pretty much make the firewall useless...

Daniel

0 Kudos
Message 2 of 5
(3,860 Views)
Good point, that was a silly request.Smiley Very Happy How about programmatically detecting if the Windows firewall is on? I have a VNA that won't communicate if the Windows firewall is on....
 
Michael
0 Kudos
Message 3 of 5
(3,815 Views)

I take it back, not a silly request. For future users searching the discussion forum, I found in the MSDN library that there is a Windows Firewall API that will let you disable, enable, or change port settings for the local Windows Firewall.

http://msdn2.microsoft.com/en-us/library/aa364679.aspx

Now I just need to throw the methods I need into a DLL and I should be set...

 

Michael

0 Kudos
Message 4 of 5
(3,797 Views)
For me this is one more reason NOT to use Windows firewall...
0 Kudos
Message 5 of 5
(3,792 Views)