face: Avoid calls to socket::local_endpoint()

Change-Id: I0cb9152efb95faa105a0d0e08ebfb263581d4d43
Refs: #1741