12 Nov
2007
12 Nov
'07
10:51 p.m.
Hi Dave, On Nov 12, 2007 7:15 PM, Dave Zarzycki <zarzycki@apple.com> wrote:
Sure, set the port to zero. The kernel will dynamically assign a free port.
Ah, thanks.
Actually, the launchd code should handle that for you. Just set Bonjour to true in the plist.
Unfortunately, the SSH port is bound only to the loopback interface (so that others on my LAN cannot access it). As such, I need to register the service as being on localhost rather than mymachine.local, as per the following: $ dns-sd -P ServiceName _http._tcp . <port> localhost 127.0.0.1 However, the Bonjour key (which I set to "http" as the SockServiceName is 0) causes it to be registered as being on mymachine.local. Can I do anything about this? Thanks, Hamish