Adds support for ephemeral ports in detail::service
Fixes typo/bug in detail::service