ip property

String? get ip

The IP address of the client that sent the request.

Uses TrustedProxy headers when configured on the router; otherwise the TCP remote address.

Example:

request.ip // 192.168.1.1

Implementation

String? get ip;