Discuss this help topic in SecureBlackbox Forum

TElSocket.IPFromHost

TElSocket     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Returns IP address by host name.

Declaration

[C#]
    string IPFromHost(string Host, bool UseIPv6);

[VB.NET]
    Function IPFromHost(ByVal Host As String, ByVal UseIPv6 As Boolean) As String

[Pascal]
    function IPFromHost(const Host : string; UseIPv6 : boolean) : string;

[C++]
    void IPFromHost(const std::string &Host, bool UseIPv6, std::string &OutResult);

[PHP]
    string IPFromHost(string $Host, bool $UseIPv6)

[Java]
    String ipFromHost(String Host, boolean UseIPv6);

Parameters

  • Host - specifies the host name.
  • UseIPv6 - specifies whether IPv6 is used.

Description

    Use this method to retrieve the host's IP address.

Discuss this help topic in SecureBlackbox Forum