# GetLocalHostIP()

Returns the localhost IP address, which is 127.0.0.1 for IPv4 and ::1 for IPv6 addresses.

```
GetLocalHostIP( all=boolean, refresh=boolean );
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| all | boolean | No | pass true to get an Array with all of the local IP addresses. default [false] will return a String with one value. |  |
| refresh | boolean | No | on some systems getting all of the IP addresses can take some time so the result is cached after the first call, if the system's IP addresses were modified, pass true to refresh that cache. |  |

# Examples

```1
	dump(getLocalhostIp());
```







# Categories

[Lucee Server related Tags, Functions and Guides](../../categories/server.md)

# See Also

[IsLocalHost()](islocalhost.md)