--- src/modules/macosx/module-bonjour-publish.c 2013-08-19 10:20:03.000000000 -0500 +++ src/modules/macosx/module-bonjour-publish.c 2013-08-19 10:20:17.000000000 -0500 @@ -183,13 +183,13 @@ a.port > 0) { pa_xfree(a.path_or_host); - return a.port; + return htons(a.port); } pa_xfree(a.path_or_host); } - return PA_NATIVE_DEFAULT_PORT; + return htons(PA_NATIVE_DEFAULT_PORT); } static int publish_service(struct service *s) {