Uri.Authority Property gets the Domain Name System (DNS) host name or IP address and the port number for a server.
Imports System.IO
Imports System.Net
Imports System.Text
publicclass MainClass
Shared Sub Main()
Dim baseUri As New Uri("http://www.yourdomain.com:8080/")
Dim myUri As New Uri(baseUri,"shownew.htm?date=today")
Console.WriteLine(myUri.Authority)
End Sub
End Class