Click or drag to resize
ServerHostNameIdentifierAlgorithmGetIdentifiers Method
Generates a generic list of ServerHostNameIdentifier objects.

Namespace: com.softwarekey.Client.Licensing
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.18.2.0
Syntax
public override List<SystemIdentifier> GetIdentifiers()

Return Value

Type: ListSystemIdentifier
Returns a generic list of ServerHostNameIdentifier objects.
Exceptions
ExceptionCondition
SocketException
Remarks

The list contains a single ServerHostNameIdentifier object, which contains an identifier based on the fully qualified host name of the computer running the application.

Caution note Caution

Though it is not generally a frequent occurrence, users with administrative access to computers can change their name, which will change the identifier generated.

Caution note Caution

It is possible for this method to throw an System.Net.Sockets.SocketException if the system's host name cannot be resolved. This can be resolved by either adding an entry in the DNS server's zone file for the host running your application (if the DNS server used by the host can be managed by the same person or company using the host system), or by updating the hosts file (C:\Windows\System32\drivers\etc\hosts on Windows or /etc/hosts on Unix) to contain a fixed IP address for the system's host name. If you opt to edit the hosts file, adding the system's host name to an existing line could result in that line's first entry being returned for this algorithm. (For example, adding your system's host name to the end of the line for localhost would likely cause the algorithm to use localhost as the server host name.)

See Also