SetHost

This function sets the default settings for connecting to the host server. Typically Server.Connect follows this command.

Group: Server Extensions


Syntax: [bOK =] Server.SetHost([vServerName], [nPort])

bOK                 (Boolean) Optional – is a return value; a value of True means the method processed normally.

vServerName    (Variant) Optional – is the name or IP address of the server

nPort                (Long) Optional – is the port that facilitates the data portion of the communication.

Example:

Dim bOK as Boolean

bOK = Server.SetHost("192.168.1.100", 21097)

Supported Versions:       RFgen 4.0 and newer.