I want to get the IP address of the client, and I'm trying to use localhost (127.0.0.1 ) , but I always get :: 1
I'm trying to use
app.enable('trust proxy'); app.set('trust proxy', 'loopback'); app.get('/',function(req,res){ res.send(req.ip);
how to get 127.0.0.1 , not :: 1 . It can be done?
Julio Seña
source share