---
title: "__machineIP"
description: "JMeter __machineIP function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values."
url: https://docs.jmeter.ai/functions/machineip/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# __machineIP

*Also documented in context in the [full Functions and Variables reference](/user-manual/functions/#__machineIP).*

The machineIP function returns the local IP address. This uses the Java method `InetAddress.getLocalHost()` and passes it to `getHostAddress()`

| Name | Required | Description |
| --- | --- | --- |
| Variable Name | No | A reference name for reusing the value                 computed by this function. |

Examples:

```bash
\${__machineIP()}
```

will return the IP address of the machine

```bash
\${__machineIP}
```

will return the IP address of the machine

## Related

- [Functions and Variables Guide](/topics/functions-and-variables/)
- [Regex Extractor Builder](/tools/regex-tester/)
- [Full Functions Reference](/user-manual/functions/)
- [Component Reference](/user-manual/component-reference/)
