# HttpProtect.getClientIp property · @imqueue/http-protect

Source: https://imqueue.org/api/http-protect/latest/http-protect.httpprotect.getclientip/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/http-protect 3.0.1 — generated reference, not hand-written

Resolves the client IP for a request — `request-ip`'s `getClientIp` unless [HttpProtectOptions.getClientIp](https://imqueue.org/api/http-protect/latest/http-protect.httpprotectoptions.getclientip/) replaced it.

**Signature:**

```typescript
readonly getClientIp: (req: Request) => string | null;
```

## Remarks

Everything this class stores is keyed by what this returns, so it is the single point that decides whose budget a request spends.

