> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/wifi-pineapple-pager/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/wifi-pineapple-pager/wifi-pineapple-commands/find_client_ip.md).

# FIND\_CLIENT\_IP

`FIND_CLIENT_IP` Search ARP and DHCP records for an associated WiFi client IP address

### When to use it <a href="#when-to-use-it" id="when-to-use-it"></a>

After a client has associated to a Pineapple access point (such as Open or EvilWPA), use `FIND_CLIENT_IP` to search for the IP address used by the client.

#### Syntax <a href="#syntax" id="syntax"></a>

```none
FIND_CLIENT_IP [mac] {timeout}
```

**mac&#x20;*****required***

MAC address of the client, in `aa:bb:cc:dd:ee:ff` format

**timeout**

Timeout, in seconds, before giving up.

### Results <a href="#results" id="results"></a>

`FIND_CLIENT_IP` waits for the requested MAC to have an IP, or until `timeout` expires

`FIND_CLIENT_IP` returns the IP as output

`FIND_CLIENT_IP` exits with a return code of 0 on success and non-zero on failure

### Examples <a href="#examples" id="examples"></a>

```bash
__ip=$(FIND_CLIENT_IP 00:DE:AD:BE:EF:01) || exit 0
```

<br>
