Share this page

# lr.getHostName

Returns the name of the host.

Example | Informational Functions

## Syntax

    lr.getHostName( );

The lr.getHostName function returns the name of the machine executing the script.

## Return Values

On success, returns the name of the host. On failure, returns NULL.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

    function Action(){
       var myHost = lr.getHostName();
       lr.outputMessage(myHost);
    return 0;
    }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: