src/TeamSpeak3/Helper/Uri.php
public static function getHostUri()
  {
    $sheme = (self::getHostParam("HTTPS") == "on") ? "https" : "http";

    $serverName = new Str(self::getHostParam("HTTP_HOST"));
    $serverPort = self::getHostParam("SERVER_PORT");
    $serverPort = ($serverPort != 80 && $serverPort != 443) ? ":" . $serverPort : "";

    if($serverName->endsWith($serverPort))
    {
      $serverName = $serverName->replace($serverPort, "");
    }

    return new Str($sheme . "://" . $serverName . $serverPort);
  }
public static function getHostUri()
  {
    $sheme = (self::getHostParam("HTTPS") == "on") ? "https" : "http";

    $serverName = new Str(self::getHostParam("HTTP_HOST"));
    $serverPort = self::getHostParam("SERVER_PORT");
    $serverPort = ($serverPort != 80 && $serverPort != 443) ? ":" . $serverPort : "";

    if($serverName->endsWith($serverPort))
    {
      $serverName = $serverName->replace($serverPort, "");
    }

    return new Str($sheme . "://" . $serverName . $serverPort);
  }
public static function getHostUri ( ) { $ sheme = ( self :: getHostParam ( "HTTPS" ) == "on" ) ? "https" : "http" ; $ serverName = new Str ( self :: getHostParam ( "HTTP_HOST" ) ) ; $ serverPort = self :: getHostParam ( "SERVER_PORT" ) ; $ serverPort = ( $ serverPort != 80 && $ serverPort != 443 ) ? ":" . $ serverPort : "" ; if ( $ serverName -> endsWith ( $ serverPort ) ) { $ serverName = $ serverName -> replace ( $ serverPort , "" ) ; } return new Str ( $ sheme . "://" . $ serverName . $ serverPort ) ; }
Returns the applications host address.

@return Str
Returns the applications host address .