Article View: borland.public.cppbuilder.internet.socket
Article #767iphlpapi - port forwarding
From: chrissy
Date: Fri, 26 Oct 2007 07:50
Date: Fri, 26 Oct 2007 07:50
13 lines
1490 bytes
1490 bytes
I have two pc's behind my wifi router, each has a server app on them and acts as client and servers and both has a diferent listening port on them. When trying to connect via another internet pc (someone else) the port forwarding being not set in the router admin fails the connection. I want to make the apps automatically setup port forwarding when they start on each pc and then they register with the main website with their desired listening port so requests can be directed to the appropriate pc. Can someone tell me if i can use the IPHLPAPI's CreateIPforwardEntry,SetIPForwardEntry and DeleteIPForardEntry to do this. Or is there a better way. Thanks in advance.
Technical Details
Message-ID:
<47219c54@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,318625ceb34f9bba,start X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "chrissy" <crobson@tesco.net> Newsgroups: borland.public.cppbuilder.internet.socket Subject: iphlpapi - port forwarding Date: Fri, 26 Oct 2007 08:50:47 +0100 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 82.21.181.76 Message-ID: <47219c54@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193385044 82.21.181.76 (26 Oct 2007 00:50:44 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail