Share this page

# lr.get_host_name

Returns the name of the host.

    String lr.get_host_name( );

Informational Functions | Java Syntax

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

## Return Values

This function returns the name of the host if the operation is successful and NULL if the operation fails. The return value is a pointer to static data and should only be read, not altered.

## Parameterization

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

## Example

In the following example, the lr.get_host_name function retrieves the name of the host.

    String my_host = lr.get_host_name( );

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