Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Trust Listen port in the window service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hash - 23 Jul 2007 20:50 GMT
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.
Peter Duniho - 23 Jul 2007 21:08 GMT
> 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
hash - 23 Jul 2007 21:21 GMT
On Jul 23, 11:08 pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> > 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.
[quoted text clipped - 7 lines]
>
> Pete

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

Thanks.
Peter Duniho - 23 Jul 2007 22:51 GMT
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.