Add portal_hostname_from_client_ip function
Merge pull request #330 from bcyrill/patch-9

Add portal_hostname_from_client_ip function