Article View: borland.public.cppbuilder.internet.socket
Article #768Re: iphlpapi - port forwarding
From: Remy Lebeau (TeamB)
Date: Fri, 26 Oct 2007 16:58
Date: Fri, 26 Oct 2007 16:58
30 lines
1975 bytes
1975 bytes
"chrissy" <crobson@tesco.net> wrote in message
news:47219c54@newsgroups.borland.com...
> I want to make the apps automatically setup port forwarding
> when they start on each pc
To do that, your router needs to support UPnP (Universal Plug-n-Play), and
you need to have the UPnP client files installed on each PC. Refer to MSDN
for more information:
Description of Universal Plug and Play Features in Windows XP
http://support.microsoft.com/kb/323713
Description of Universal Plug and Play Features in Windows Millennium
Edition
http://support.microsoft.com/kb/262458
UPnP APIs
http://msdn2.microsoft.com/en-us/library/aa382303.aspx
> Can someone tell me if i can use the IPHLPAPI's CreateIPforwardEntry,
> SetIPForwardEntry and DeleteIPForardEntry to do this.
Those functions have nothing to do with what you are asking for. They
manipulate the calling PC's local routing table, but you need to adjust the
router's table instead.
Gambit
Technical Details
Message-ID:
<47221d05$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47219c54@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,318625ceb34f9bba X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <47219c54@newsgroups.borland.com> Subject: Re: iphlpapi - port forwarding Date: Fri, 26 Oct 2007 09:58:19 -0700 Lines: 32 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <47221d05$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193417989 207.178.157.90 (26 Oct 2007 09:59:49 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail