473,626 Members | 3,325 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Firewall

I am looking to perform the following actions

1. Detect if the Windows Firewall exists, and is enabled, if
it is not the case no action will be taken.
2. See if the application and ports are already Exceptions if
so do nothing.
3. Post a message to the user that the firewall will block
the application and allow the user to decide if he would like to add
an exception, similar to what Visual Studio 2005 does with remote
debugging.

May 2 '07 #1
1 3200
Hello chris,

Look at Internet Connection Sharing and Internet Connection Firewall
http://msdn2.microsoft.com/en-us/library/Aa366319.aspx

and here http://www.codeproject.com/w2k/WinXPSP2Firewall.asp

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

cdI am looking to perform the following actions
cd>
cd1. Detect if the Windows Firewall exists, and is enabled,
cdif
cdit is not the case no action will be taken.
cd2. See if the application and ports are already Exceptions
cdif
cdso do nothing.
cd3. Post a message to the user that the firewall will block
cdthe application and allow the user to decide if he would like to add
cdan exception, similar to what Visual Studio 2005 does with remote
cddebugging.
cd>
May 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1902
by: Bart Nessux | last post by:
for i in range(10000): try: n,v,t = EnumValue(open_key,i) # n == name of the registry object. # v == object's value. # t == object's type. print n,v,t except EnvironmentError: print "\nThere are", i, "registy objects under this key." break
0
1399
by: Brad Tilley | last post by:
I thought some of you might find this of interest. Especially if you use Python for Windows sys-admin tasks and you do not want to use the built-in "Windows Firewall" that came with service pack 2. http://filebox.vt.edu/users/rtilley/downloads/win_fw/Windows-Firewall.html
6
9961
by: Ann | last post by:
Hi I have a question regarding the SQL Server(SQL Server 7) port 1433. Some body is trying to hack into our Windows 2000 server through port 1433. Is there a way i can close this port? I tried using a tool called Ipsecpol.exe ( Internet Protocol Security Policies Tool). But when we run netstat, it still looks like they are able to connect to the server using port 1433. Has anyone come across this problem? I would appreciate it very much...
2
2035
by: Jeffrey Tate via DotNetMonster.com | last post by:
The error is: The proxy settings on this computer are not configured correctly for Web discovery. MSDN states that this is caused by: This error appears in the Add Web Reference dialog box if you are developing on a machine that is behind a firewall and a proxy server has not been explicitly specified for Internet Explorer connections. You need to explicitly specify the address and port of the proxy server on your network in order to make...
11
2485
by: kshetgar | last post by:
I am experiencing a wierd problem... I have a C#.Net application Server which uses Sockets. It listens on port 11000. and it runs as a Windows Service. If I run it as a consple Application, I can connect to that port/Application from any machine on the network as well as from my local machine.
3
2009
by: Vinod R.Shenoy | last post by:
Hi All, Came across a post wherin you had helped somebody with a similar problem and was wondering if you could help us out with it. Our problem is , We have a development SQL Server 2000 (running on Win2K SP4) machine that we want to run on a Windows 2003 server machine and access it via our internal LAN. We have opened the firewall to allow our applications
5
2980
by: thorley | last post by:
Greetings, I'm interested in a simple content-based internet firewall/filter, similar to dansguardian (http://dansguardian.org/), but written in python, and for windows. I assumed such a project would already exist, but my searches on freshmeat, and google turned up empty. I would be interested in starting my own project if necessary, so I have two questions: 1) Does any one no of such a project?
2
6166
by: =?Utf-8?B?bTBh?= | last post by:
Hello! Could someone kindly show me how to use WINDOWS FIREWALL API in visual basic 6.0 Some snippets of code may help me with some basic documentation. Lets assume i want to block a port using the firewall api provided by windows, how would i do it using visual basic.
4
1843
by: =?Utf-8?B?SmF5RFA=?= | last post by:
HELP! I have a small home network setup. One Desktop for me, one dektop for my two girls, a laptop for work, my wife's laptop, and my son's laptop for college work. All in "WORKGROUP" connected through wireless Verizon FIOS broadband router. I had Zone Alarm FREE as the firewall. I also have CAI Anti-Virus. Both CAI Anti-Virus and Zone Alarm FREE needed an update.
2
1479
by: =?Utf-8?B?YnJpZ2Fkb29t?= | last post by:
windows firewall not working at all. i need to access windows firewall program but when i click icon in control panel box pops up stating "Due to an unidentified problem,windows cannot display windows firewall settings." thats it no explanation or hint as to what is wrong just that it doesnt work, so how do you fix it ????
0
8266
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8638
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2626
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.