windows-firewall

Can't connect to MySQL server on 'localhost' (10061)

I recently installed MySQL 5 on windows 2003 and tried configuring an instance. Everything worked fine until i got to "Applying Security settings", at which point it gave me the above error. I do have a port 3306 exception in my firewall for 'MySQL Server'. Please help. ...

Disable the programs ability to add exceptions to windows firewall via the API

This is a problem with Windows Firewall that is very annoying from its introduction. And persist trough several versions of windows. I have two questions: Is it possible to be disabled or at least require confirmation in XP/2003 Server ? Does UAC handles this in Vista/2008 server? If it does not - is there any way to disable it? ...

How to detect a firewall in Windows?

Hi, My app needs to make a GET request to a website and I'd like to be able to know if it's being blocked by a firewall, and ask the user to add an exception. How can I find out that my get request failed because of a firewall, instead of something else? ...

What causes Windows Firewall to block an application?

I have a Windows Forms application that runs locally on the user's desktop. The only way it accesses the Internet is by doing System.Diagnostics.Process.Start(url) to launch the user's default browser and point it to various URLs (to check for updates, contact us, etc.). And none of this happens without the user explicitly requesting it ...

What API calls are involved in opening a port in the Windows Firewall?

I have a batch file that installs WinVNC in about 1 second and starts up the service. However, I still have to manually go into the Windows Firewall and open a port to allow connections. How can I do that programmatically? If I could do it from inside the batch file, that would be ideal, but I'm ok writing an EXE if that's necessary. ...

help needed on developing Fire wall

Hi All, I am developing one firewall like kind application for my XP machine. I am using pre WFP apis and hardly finding document on those api. I am using PfAddFiltersToInterface to add the filter, it takes one parameter of kind PF_FILTER_DESCRIPTOR. I wanted to know how to fill this structure and some more info on other apis i have...

Active FTP client blocked by Windows Firewall on Windows 7

I have an application that runs as a service and contains an FTP client. It needs to connect to an FTP server that only supports Active FTP. When I attempt to get a list of files or download a file, Windows Firewall is dropping the incoming connection from the FTP server. (I don't believe we had this problem in Windows XP or Windows Vis...

Best practice for adding firewall exception: program or port exception?

For a distributed production client-server WCF application (self-hosted as a Windows Service with NetTcpBinding), I am adding logic to add expception to Windows Firewall during the installation via netsh command. I have noticed that the remote communication seems to work fine whether the firewall exception is for the program (the execut...

Remote login to SQL Server Express 2008

Hey. I am remotely accessing SQL Server Express 2008. I have turned on service "SQL Server Browser" I have turned on service "SQL Server (SQLExpress)" I have enabled TCP/IP and set dynamic ports to blank and tcp port to 1433 in properties I can connect localy(using ip) so my credentials are correct. I have a exceptions record in my wi...

Trace Routing for a Certain port

Dear Network Gurus Before saying anything let me tell you that i am not well educated int networks related subjects. I am a software developer and I have written and exposed a Service on HTTPS at port 8000. Now i want to know that if there is any kind of software that can help me to trace if there is any kind of port blocking from one...

Programmatically modify Firewall rules in Windows Server 2008 R2

I want be able to programmatically enable, disable, create firewall rules in Windows Server 2008 R2. What is the object model to modify the firewall rules from .Net/PowerShell? ...

How to approach whitelisting an app/exe

We have an application that auto-installs upgrades of itself on our customers' (Windows OS/PCs) computers. It is lightweight (650K) and does a very specific task for our customers in helping us collect data for them as part of our overall service to our customers. It first checks our website to see if a newer version of the app exists an...

Restrict RDP port based on a Dynamic DNS

Hi All, I want to set a restriction on my firewall (windows firewall on windows 2008) to only allow connections from a certain dynamic DNS. Is this possible? The reason I ask is that this would allow us to just change the IP on the dynamic DNS if our IP changes and means we won't get locked out of RDP. This also allows me to RDP in fro...

How do you add firewall permission to an app during installation?

I've heard that you can, during installation, add an exception for your app to give permission for it to access the internet through the firewall. Anyone know how to do this? ...

Windows server 2003, remote way to bypass windows firewall

I have a windows server 2003, I disabled the firewall with the remote desktop, enable it and I lost the access to my machine (and my sites). I was wondering if there is any backdoor to bypass firewall in situations like this, so if something goes wrong, I could fix it remotely. In linux for example, there is ssh reverse tunneling which ...

How can I open up Windows Firewall (VISTA) for outbound traffic to allow computer to see networked drives?

I have a computer (Vista) that has to have a firewall on it. Furthermore, it's imposed (from management) that under Firewall properties, the Outbond connections are blocked. The default is "Allow". I would, however, like this computer to be able to see networked drives. I have tried opening up various things by going to Outbound Rules...

Win 7 : Need Help with the netsh firewall add portopening

Hi All, i'm in a difficult situation now . I need to change the "netsh firewall add portopening .." command to a windows 7 accepted command, so i know that the option to make is to convert it into the following command " netsh advfirewall firewall add rule name .." But my question is. in the earlier command , i.e "netsh firewall add po...

Asmx webservice IP Address change issue due to hosting in internet.

I have a asmx webservice which is accessed from office intranet. I could consume through my flex app with the local IP Address of the hosted system. When that particular system was exposed to the internet, the external IP got changed. Now If I use the same flex app using exposed URL, the wsdl is not getting loaded. Reason being the WSDL ...

TCP packet interception and redirection under windows

I have been trying to find some way of redirecting outbound TCP packets under windows, but so far have not been successful. Does anyone know of any software/code bit that would do something like that? I am not even sure it is possible with the windows stack. I am looking at doing something similar to what "-j REDIRECT" is to iptables. ...

Does a firewall on a machine only block stuff from outside the machine or also from processes on the machine?

Does a firewall running on a machine only block stuff from outside that machine, or do they block communication between processes on a machine communicating via ports? Specifically, I'm writing a windows service which will expose an http RESTful service for other processes on the machine. The service will be running on a non-standard po...