adonisjs request ip
AdonisJS Request IP
In AdonisJS, you can get the IP address of the client who sent an HTTP request by accessing the request.ip() method. This method returns the client's IP address.
Here's an example:
Route.get('/', ({ request }) => {
const ip = request.ip()
return