public function getConnectionPort() { $port = 80; $host = $this->server()->httpHost(); if (empty($host)) { return $port; } $host = $this->str($host); if ($host->contains(':')) { $port = $host->explode(':')->last(); } return $port; }