Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF service blocked by Windows Firewall

Tags:

http

wcf

firewall

I've got a WCF service using a HttpBinding. The service is running in a self hosting process (A Windows Service) and this process is inside the Windows Firewall exceptions list.

If the Firewall is active and I'm trying to access the service using a C# client or Internet Explorer, the service does not respond. But if the Firewall is disabled the connection works like a charm.

Does anyone have expirence with WCF and the Windows Firewall? The problem came up on Windows 7 64bit. I didn't try another OS yet.

What am I supposed to do to get this working with an active Firewall?

Regards Michael

EDIT: I found a clue, that the http.sys has to be added to the firewall exceptions list, as wcf self hosting uses http.sys. Any advices, how to solve this?

EDIT: I tried opening all listening port manually, which works too, but is not an option, because I don't know them in advance.

like image 787
Michael Stoll Avatar asked Jun 09 '10 13:06

Michael Stoll


1 Answers

Try the MSDN article Configuring HTTP and HTTPS.

like image 120
sdanelson Avatar answered Oct 16 '22 17:10

sdanelson