ip property

String? get ip

The address of the socket this request arrived on.

Behind a reverse proxy this is the proxy's address, the same for every client. Use clientIp when you need the originating address.

Implementation

String? get ip => request.connectionInfo?.remoteAddress.address;