UtilNetworkHostnameToIp Method
Gets the IP addresses that are associated to a hostname.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IPAddress[] HostnameToIp(
string hostname,
AddressFamily addressFamily
)
Public Shared Function HostnameToIp (
hostname As String,
addressFamily As AddressFamily
) As IPAddress()
Dim hostname As String
Dim addressFamily As AddressFamily
Dim returnValue As IPAddress()
returnValue = UtilNetwork.HostnameToIp(hostname,
addressFamily)
public:
static array<IPAddress^>^ HostnameToIp(
String^ hostname,
AddressFamily addressFamily
)
static member HostnameToIp :
hostname : string *
addressFamily : AddressFamily -> IPAddress[]
No code example is currently available or this language may not be supported.
- hostname String
-
The hostname.
- addressFamily AddressFamily
-
The address family.
IPAddress
The IP addresses.
This is a code example.
No code example is currently available or this language may not be supported.
Dim ipV4List As New List(Of String)(HostnameToIp("foro.elhacker.net", AddressFamily.InterNetwork))
Dim ipV6List As New List(Of String)(HostnameToIp("LOCALHOST", AddressFamily.InterNetworkV6))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
NotImplementedException
|
Address filtering not implemented yet.
|