Share this page

# lr.get_master_host_name

Returns the name of the Controller host.

    String lr.get_master_host_name( );

Informational Functions | Java Syntax

The lr.get_master_host_name function returns the name of the machine running the Controller .

Not applicable for products that do not run Vusers.

## Return Values

This function returns the name of the Controller machine 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, lr.get_master_host_name retrieves the name of the Controller machine.

    String masterHost;
    try {
        masterHost = lr.get_master_host_name();
        lr.output_message ("The Master Host name is " + masterHost);
    }
    catch (Exception e) {}

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