3
I have an application . Net where for each access is recorded log with IP of the access machine, time etc.
No. Net I use Request.UserHostAddress
in the login POST to pick up the IP of the machine that is accessing the application(the same local network wheel so that’s enough).
Now I’m migrating the application to Node and the doubt has arisen, there is an equivalent to Request.UserHostAddress
in Ode (process in the backend the information of the machine that is accessing the application) or it will be necessary to obtain the information from the frontend?
Are you using a library, like Express? Or just Node.js?
– Luiz Felipe
@Luizfelipe I’m using the express right now.
– Deividson Oliveira
Have you tried
req.ip()
?– Luiz Felipe