Skip to content

__machineName

JMeter __machineName function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.

Difficulty
intermediate
Guide type
reference
Estimated read time
1 min read
Last verified version
Verified JMeter 5.6

Also documented in context in the full Functions and Variables reference.

The machineName function returns the local host name. This uses the Java method InetAddress.getLocalHost() and passes it to getHostName()

NameRequiredDescription
Variable NameNoA reference name for reusing the value computed by this function.

Examples:

Terminal window
\${__machineName()}

will return the host name of the machine

Terminal window
\${__machineName}

will return the host name of the machine

On this page