On May 22, 2008, at 12:05 PM, Dave Dribin wrote:
On May 22, 2008, at 2:01 PM, Dave Zarzycki wrote:
Dave,
The Apple way to solve this problem is to use Bonjour with a dynamic port assignment. Just use port zero, and set Bonjour to true like so:
<key>Sockets</key> <dict> <key>Listeners</key> <dict> <key>Bonjour</key> <true/> <key>SockServiceName</key> <string>0</string> </dict> </dict>
That's what I thought, but I'm thinking this won't quite work for this case. Our agent is actually an HTTP server, and we hand out URLs to stuff it serves up, e.g. http://localhost:12345/foo. If we use a dynamic port, even with Bonjour, our URLs are no longer valid. Unless there's a way to specify Bonjour ports in URLs? I thought that only worked for host names, though (i.e. <name>.local).
Dave, In theory, the Back-to-my-Mac feature of Mac OS X Leopard should make this possible. One would just need to go to the "Bonjour" submenu of the "Bookmarks" menu in Safari.app. davez