开发者

How to open Windows 7 firewall for self hosted basic-http WCF service

I have added a 开发者_运维技巧rule to the firewall to open TCP port 8080 used by my WCF-service app (self hosted basic-http). Everything works fine as along as I check "All applications..." and not the specific exe-file of my app in the rule. Ive googled the problem and found out that a deamon process (SMSvcHost.exe) is used to host the service, but only when using net-tcp and Im using basic-http. The client is a Windows Phone 7-app so I cant use net-tcp. But what daemon-process is being used for basic-http? And what would be the easiest way of adding this rule to the firewall programatically when my service-app is starting for the first time?


I know W3WP.exe handles the app pools, but I'm not sure about the HTTP hosting. I've personally never done a rule that applied a certain port to an application, but rather one or the other.

I hope that at least is something helpful :)


Try using the netstat command with the -o option to figure out which PID is listening on that port. Then look Task Manager to figure out which exe belongs to that PID.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜