Trust Listen port in the window service

  • Thread starter Thread starter hash
  • Start date Start date
H

hash

Hello

I am not sure that what I want to know is a big problem, but ... I
created windows service which listen internet connection to some port.
Everythings ok, but windows firewall denyed any connection to this.
Can somebody tell me what should I do please?

Thanks.
 
I am not sure that what I want to know is a big problem, but ... I
created windows service which listen internet connection to some port.
Everythings ok, but windows firewall denyed any connection to this.
Can somebody tell me what should I do please?

Configure the firewall so that it doesn't deny access to the port.

You can either just open the port globally, or you can give your service
specific access to the port.

Pete
 
Configure the firewall so that it doesn't deny access to the port.

You can either just open the port globally, or you can give your service
specific access to the port.

Pete

Yep, but this service will be used by another people and I can't ask
them to configure firewall everytime :)

Thanks.
 
Yep, but this service will be used by another people and I can't ask
them to configure firewall everytime :)

If an application could just arbitrarily change the firewall settings any
time it wanted, there wouldn't be much point to having a firewall, would
there? To some extent, if your users are going to have the firewall
active, they need to be prepared to configure it.

That said, I believe that you may be able to find some API, perhaps in the
WMI part of .NET, that allows for limited changes that go through some
specific user authentication scenario. What that is, I don't know off the
top of my head.

Pete
 
Back
Top