Location.Host

Location.Host property

Returns the Location object’s URL’s host and port (if different from the default port for the scheme). Can be set, to navigate to the same URL with a changed host and port.

public string Host { get; set; }

See Also