# IsLocalHost()

Determines whether the specified IP address is the localhost.

```
IsLocalHost( ip=String );
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| ip | String | Yes | Valid IP address. *Alias: value* |  |

# Examples

```cfml
ip="127.0.0.1";
writeDump(islocalhost(ip));//true
writeDump(islocalhost(GetLocalHostIP()));//true
```







# Categories

[Decision logic](../../categories/decision.md)

# See Also

[GetLocalHostIP()](getlocalhostip.md), [IsIPInRange()](isipinrange.md), [IsIPv6()](isipv6.md)