-
Notifications
You must be signed in to change notification settings - Fork 1
URIHelpers.Hostname
Andrew Lambert edited this page Jul 27, 2017
·
11 revisions
URIHelpers.Hostname
Public Class Hostname
This class represents the hostname or IP address of the URL. IP addresses can be in IPv4 or IPv6 format. file://
URLs do not include a host name or IP.
An Internet domain name is read from right to left, with the right-most name part being the zeroth subdomain (AKA, the top-level domain, or TLD) and the left-most part being at SubDomainCount-1
.
For example, the domain name www.example.com
would be represented as:
SubDomain(0) = "com" ' TLD
SubDomain(1) = "example" ' domain name
SubDomain(2) = "www" ' subdomain
If the URL uses an IP address instead of a domain name then the address is stored entirely at SubDomain(0)
:
SubDomain(0) = "192.168.1.1" ' IPv4
' OR
SubDomain(0) = "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3211]" ' IPv6