wiki:ZeroconfSupport
Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Version 1 (modified by hdiogenes, 13 years ago) (diff)

Contributing initial documentation for Zeroconf/Bonjour/Avahi? Support

When a project is started in development mode, TurboGears automatically announces its IP address and port number to the network. This is done through  Zeroconf (AKA Apple Bonjour/Rendezvous?), especifically the DNS Service Discovery protocol. To disable DNS-SD announcements (or enable it in production environments), use the tg.bonjour variable.

Mac OS X

Service announcement works out of the box in Mac OS X (through the "/usr/bin/dns-sd" binary). To see the list of HTTP services published in your network, open Safari and enable "Bonjour bookmarks" in the "Bookmark preferences" tab.

Linux

Zeroconf support for Linux isn't built into TurboGears yet (you'll have to apply this patch in startup.py). To actually see it working, first install  Avahi and its Gnome applet (in Ubuntu Dapper: apt-get install avahi-daemon service-discovery-applet).

After adding sd-applet to your Gnome Panel, make sure it has "Services - _http._tcp" and "Advanced - Browse services published on this machine" enabled in Preferences.

Windows

TurboGears support for Zeroconf isn't available on Windows yet.