NuxtN
Nuxtβ€’10mo ago
RainyDev

getRequestIP returns nothing

Hi there, I need to get the clients IP in a API Route.
Currently I'm trying this:

const ip = getRequestIP(event)


I've found this somewhere in the docs.
But it returns undefined in Dev (nuxt dev) and on NuxtHub aswell..

Unfortunately I need the IP so are there any workarounds?
Was this page helpful?