Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UPnP Support



Hi Mark,

I'm seeing more and more UPnP support, is there UPnP service on MacOS-X
somewhere which can be used ?. I know of Apple's Bonjour, but I see a lot of
ISP like automatic network setup which UPnP gives (also auto Port setup),
which is kindya nice.

"UPnP support" is a broad term that doesn't mean a whole lot. I'm not sure what you mean by "ISP like automatic network setup", but it sounds like what you're really asking is if Mac OS X has support for setting up port mappings in NAT routers. Currently, the mDNSResponder contains code for setting up port mappings in both the AirPort base station via a protocol called NAT-PMP, and also supports setting up port mappings using the UPnP internet gateway protocol. This code is triggered when you register services via wide-area Bonjour while behind a NAT. We've had requests to export the NAT port mapping code via its own API so it could be callable by any application, and are considering this for a future release.


In the mean time, since mDNSResponder is open source, you could easily take this code and attempt to build it directly into your application.

<http://www.opensource.apple.com/darwinsource/tarballs/apsl/ mDNSResponder-107.5.tar.gz>

The file you'll need is called LegacyNATTraversal.c and it's inside the mDNSMacOSX folder.

Hope that helps.
-Marc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >UPnP Support (From: Mark Thomas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.