Does anyone have an arrow or an example of where you can get a request’s IP using express. For some reason my methods return a strange malformed IP which occurs for every request. Thanks
Note that some schools and other large orgs have the same IP address for every visitor to your site.
That sends the same malformed IP
I’ll show an example in a moment
I found a way to get the user’s IP with fastify & express:
const ip = req.headers["x-forwarded-for"].split(",");