Skip to content

__machineIP

JMeter __machineIP 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 machineIP function returns the local IP address. This uses the Java method InetAddress.getLocalHost() and passes it to getHostAddress()

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

Examples:

Terminal window
\${__machineIP()}

will return the IP address of the machine

Terminal window
\${__machineIP}

will return the IP address of the machine

On this page