public function getEndPoint() { if (!$this->_domain) { throw new Exception("Failed to get endpoint on {$this}: No domain specified. Use the host-name, ipv4 or [ipv6]"); } return new Ip\EndPoint(Ip\Address::fromDomain($this->_domain), $this->getRequiredPort()); }