get hostname from rpc