Also found this one: http://www.whitebear.ch/upnp.htm

.. looks like somebody already made a nice Delphi-upnp component.

 

That upnp component looks like a bit of overkill though. Opening an upnp
port only requires a simple call to HNetCfg.NATUPnP .  and don't forget, you
also still need to open up your windows firewall . doing the upnp part on
the router is just half of the job of getting it working for your clients!
So, might as well use the HNetCfg com-api  as a convenient wrapper that does
everything . instead of the Delphi component. 

 


Regards,
Stefan

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Stefan Mueller
Sent: Monday, September 05, 2011 11:05 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] UPnP port forwarding

 

Here are 3 links that should help:

 

http://www.delphi3000.com/articles/article_5021.asp?SK=

http://msdn.microsoft.com/en-us/library/aa366415.aspx

http://www.knoxscape.com/Upnp/NAT.htm

 

the HNetCfg com-api has all the necessary stuff in it to open and query upnp
devices. 

 

 


Kind Regards,
Stefan Mueller 
_______________________
R&D Manager
ORCL Toolbox LLP, Japan
http://www.orcl-toolbox.com <http://www.orcl-toolbox.com/>  

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Ross Levis
Sent: Monday, September 05, 2011 7:30 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] UPnP port forwarding

 

I'm increasingly being asked for help from my users for configuring port
forwarding in their routers.  My software has a couple of servers which need
to be accessed from the outside world if they wish to use some features.

 

I've heard UPnP will do this for them, and wondering if there is a simple
function someone has written for Delphi (D7) that can check if a specific
port number is already being forwarded and if not forward it.

 

Or otherwise a freeware app which can be run on a workstation to configure
any UPnP router.

 

Cheers,

Ross.

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to