FYI, it seems that in the latest version of Ubuntu, gwibber (now part of Ubuntu-desktop) randomly grabs port 50005 to communicate with CouchDB. As far as I can tell, there's no way to restrict what ports it chooses use. I'll ask them to include a way to do that.