Add client_endpoint to get an ephemeral owner's (client, port)

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
Add tests for valid/invalid hostnames

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>