gethostname

Gets the hostname or IP address. (version 4.61 or later)

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