🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4310

Re: open a port in Windows...

#4310
From: Remy Lebeau (TeamB)
Date: Thu, 09 Feb 2006 08:15
62 lines
3212 bytes
"Malm32" <antreas7@bluebottle.com> wrote in message
news:43eae988$1@newsgroups.borland.com...

> what i meant was if there is something like a priviledge as
> SE_SHUTDOWN_NAME that enables you to shutdown
> windows but what i need is something different that will enable
> my program to be able to receive information on a single port
> that can be opened.

Again, what you are looking for is called a socket, and sockets is not
subject to security privileges.

> what i need is to bypass the windows firewall prior to XPSP2
> that asks the user to unblock the program.

You cannot bypass the firewall.  That defeats the purpose of having a
running firewall in the first place.

> The versions before that do not ask at all.

Of course not, because they do not have a built-in firewall like XP does.

> Is there any way to bypass it from code?

No.

> Just like many other programs do it?

Other programs DO NOT bypass the firewall.

> Apart from that i have seen that many programs detect even if there
> is a upnp firewall enabled and find that specific ports that either the
> user has opened manually or open some themselves!!!

That is a completely different issue.  UPnP is designed (amongst other
things) to allow programs to interact with firewalls.  They are not
bypassing the firewall at all - they are cooperating with it.

> Do you know of any library that enables this feature?

    Overview of Network Address Translation (NAT) in Windows XP

http://www.microsoft.com/technet/prodtechnol/winxppro/deploy/nattrnsv.mspx

    Universal Plug and Play (UPnP) Client Support

http://www.microsoft.com/technet/itsolutions/network/plan/insidenet/sohonet/upnpsup.mspx

    Internet Connection Sharing and Internet Connection Firewall
    http://msdn.microsoft.com/library/en-us/ics/ics/portal.asp

    Windows Firewall Reference

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

    UPnP APIs

http://msdn.microsoft.com/library/en-us/upnp/upnp/universal_plug_and_play_start_page.asp


Gambit
Technical Details
Message-ID: <43eaf9b3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43e9f382$1@newsgroups.borland.com> <43ea40cb$1@newsgroups.borland.com> <43eae988$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2576a1d1dc3092
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43e9f382$1@newsgroups.borland.com> <43ea40cb$1@newsgroups.borland.com> <43eae988$1@newsgroups.borland.com>
Subject: Re: open a port in Windows...
Date: Thu, 9 Feb 2006 00:15:29 -0800
Lines: 64
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43eaf9b3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139472819 68.69.17.41 (9 Feb 2006 00:13:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail