gethostname

Gets the hostname or IP address.

gethostname <strvar>

Remarks

Retrieves the destination hostname or IP address of Tera Term and stores it in the string variable <strvar>.

Example

testlink
if result > 1 then
    gethostname hostname
    messagebox hostname result
endif