Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How can I add some ports on the firewall
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bob D  
View profile  
 More options Oct 24 2006, 4:23 am
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Bob D" <b...@demo.it>
Date: Tue, 24 Oct 2006 11:23:19 +0300
Local: Tues, Oct 24 2006 4:23 am
Subject: How can I add some ports on the firewall
Hello,

how can I determinate if the firewall is enabled on Windows XP?
And then, to add two ports? One TCP, one UDP?

As long as my software is 100% legal, Im doing this to make user's life
easier. Also, I dont care to make it silently. If windows will display a
warning for firewall changes, its ok with me!

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Evans  
View profile  
 More options Oct 24 2006, 10:13 am
Newsgroups: borland.public.delphi.thirdpartytools.general
From: Brian Evans <NOS...@rogers.com>
Date: Tue, 24 Oct 2006 10:13:50 -0400
Local: Tues, Oct 24 2006 10:13 am
Subject: Re: How can I add some ports on the firewall

Bob D wrote:
> Hello,

> how can I determinate if the firewall is enabled on Windows XP?
> And then, to add two ports? One TCP, one UDP?

> As long as my software is 100% legal, Im doing this to make user's life
> easier. Also, I dont care to make it silently. If windows will display a
> warning for firewall changes, its ok with me!

> Thanks

The command line utility NETSH can be used to do this.
http://www.microsoft.com/technet/prodtechnol/winxppro/deploy/depfwset...

Brian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob D  
View profile  
 More options Oct 24 2006, 10:53 am
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Bob D" <b...@demo.it>
Date: Tue, 24 Oct 2006 17:53:10 +0300
Local: Tues, Oct 24 2006 10:53 am
Subject: Re: How can I add some ports on the firewall
Unfortunatelly, netsh is a windows tool and it uses different language
according to windows installation, so in my case its

C:\>netsh firewall show state

Firewall status:
-------------------------------------------------------------------
Profile                           = Standard
Operational mode                  = Disable
Exception mode                    = Enable

...

but for a German windows its going to be different. So its very difficult or
impossible to handle it like this.

any delphi-hardcore way to handle firewall rules?

Thanks

"Brian Evans" <NOS...@rogers.com> wrote in message

news:453e1fa4$1@newsgroups.borland.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Powick  
View profile  
 More options Oct 24 2006, 11:14 am
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Kevin Powick" <nos...@spamless.com>
Date: 24 Oct 2006 08:14:11 -0700
Local: Tues, Oct 24 2006 11:14 am
Subject: Re: How can I add some ports on the firewall

Bob D wrote:
> Hello,

> how can I determinate if the firewall is enabled on Windows XP?
> And then, to add two ports? One TCP, one UDP?

I think you just try to access the ports with your app, and if Windows
Firewall is blocking, it tells the user that your app is trying to
access and asks should Win Firewall keep blocking or allow this app.

That happens on my machine all the time with new software that needs
port access.

--
Kevin Powick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GrandmasterB  
View profile  
 More options Oct 24 2006, 1:31 pm
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "GrandmasterB" <Fiz...@shizzle.com>
Date: Tue, 24 Oct 2006 13:31:40 -0400
Local: Tues, Oct 24 2006 1:31 pm
Subject: Re: How can I add some ports on the firewall
"Bob D" <b...@demo.it> wrote in message

news:453dcd91$1@newsgroups.borland.com...

> how can I determinate if the firewall is enabled on Windows XP?
> And then, to add two ports? One TCP, one UDP?

In WinXP SP2 or later windows will detect that a program wants to listen on
a port and ask the user if they want to allow it to do so.  Most other up to
date software firewalls do this too.  Before that I believe it needs to be
opened manually by the user.

The real tricky problem is routers.  Look around for info on using Universal
Plug and Play to configure the routers from within your program (if the
router supports UPnP - most new ones do).  IIRC, it wasnt too difficult -
there's a com interface you can use.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Markus Landwehr  
View profile  
 More options Oct 24 2006, 4:18 pm
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Markus Landwehr" <Markus.Landw...@uni.de>
Date: Tue, 24 Oct 2006 22:18:33 +0200
Local: Tues, Oct 24 2006 4:18 pm
Subject: Re: How can I add some ports on the firewall
Look in borland.public.attachments for "XP Firewall for Bob D". It's a litle
console app with german comments.

HTH

Markus

"Bob D" <b...@demo.it> schrieb im Newsbeitrag
news:453dcd91$1@newsgroups.borland.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob D  
View profile  
 More options Oct 24 2006, 4:25 pm
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Bob D" <b...@demo.it>
Date: Tue, 24 Oct 2006 23:25:39 +0300
Local: Tues, Oct 24 2006 4:25 pm
Subject: Re: How can I add some ports on the firewall
Thanks!

But, I run it and nothing happens. Not even a single message !
Whats wrong?

Thanks

"Markus Landwehr" <Markus.Landw...@uni.de> wrote in message

news:453e758f@newsgroups.borland.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Markus Landwehr  
View profile  
 More options Oct 24 2006, 5:07 pm
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Markus Landwehr" <Markus.Landw...@uni.de>
Date: Tue, 24 Oct 2006 23:07:38 +0200
Local: Tues, Oct 24 2006 5:07 pm
Subject: Re: How can I add some ports on the firewall
It's a program, that add's some ports to the firewall. Before that, it
checks if XP-Firewall is active and so on. It does not show messages, if the
needed ports are already open (for example if the firewall is off)

Its not a program that you can call with parameters. The ports are hard
coded. I use it to open ports, that are needed by an other program. I can
sipply start it and now my customers don't need to change something in the
xp-Firewall.

Please look at
const
  DCNFirewallItems : Array [0..4] of ....

That array can be extended/changed. For each entry you can set Name,
Protocol and Port. These are registered as "exception" in the xp-Firewall.

If you compiled the program (i use Delphi 5) and started it, then look in
your xp-Firewall. You should find some entrys with "DCN ...".

Markus

"Bob D" <b...@demo.it> schrieb im Newsbeitrag
news:453e76df@newsgroups.borland.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remy Lebeau (TeamB)  
View profile  
 More options Oct 24 2006, 5:10 pm
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Remy Lebeau \(TeamB\)" <no.s...@no.spam.com>
Date: Tue, 24 Oct 2006 14:10:43 -0700
Local: Tues, Oct 24 2006 5:10 pm
Subject: Re: How can I add some ports on the firewall

"Bob D" <b...@demo.it> wrote in message

news:453dcd91$1@newsgroups.borland.com...

> how can I determinate if the firewall is enabled on Windows XP?
> And then, to add two ports? One TCP, one UDP?

Windows XP SP2 introduced a COM-based API for accessing the firewall.

    Windows Firewall and Windows Firewall with Advanced Security

http://msdn.microsoft.com/library/en-us/ics/ics/windows_firewall_star...

In particular, look at the INetFwProfile::FirewallEnabled property, and the
INetFwOpenPorts::Add() method.

Gambit


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob D  
View profile  
 More options Oct 24 2006, 6:17 pm
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Bob D" <b...@demo.it>
Date: Wed, 25 Oct 2006 01:17:11 +0300
Local: Tues, Oct 24 2006 6:17 pm
Subject: Re: How can I add some ports on the firewall
Yes, I got that but my firewall was OFF. Thats why.

Now it works!
Thanks

"Markus Landwehr" <Markus.Landw...@uni.de> wrote in message

news:453e80a7@newsgroups.borland.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Meisner  
View profile   Translate to Translated (View Original)
 More options Oct 25 2006, 7:17 pm
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Stefan Meisner" <stefan.meis...@chello.at>
Date: Thu, 26 Oct 2006 01:17:16 +0200
Local: Wed, Oct 25 2006 7:17 pm
Subject: Re: How can I add some ports on the firewall
Hallo Markus!
Habe das im Betreff genante Attachment von Dir gesehen.
Erlaubst Du mir, den Code für meine Shareware 'DDObjects'
zu adaptieren? Selbstverständlich mit Nennung Deines Namens
oder anderer von Dir gewünschter Infos in der ReadMe ;-)
Viele Grüsse
Stefan Meisner

www.delphi-online.at


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Markus Landwehr  
View profile   Translate to Translated (View Original)
 More options Oct 26 2006, 8:07 am
Newsgroups: borland.public.delphi.thirdpartytools.general
From: "Markus Landwehr" <Markus.Landw...@uni.de>
Date: Thu, 26 Oct 2006 14:07:54 +0200
Local: Thurs, Oct 26 2006 8:07 am
Subject: Re: How can I add some ports on the firewall
Hallo Stefan,

kein Problem.

Gruß, Markus

"Stefan Meisner" <stefan.meis...@chello.at> schrieb im Newsbeitrag
news:453ff079@newsgroups.borland.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »