Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express server how to get request ip

 const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
 
PREVIOUS NEXT
Tagged: #express #server #request #ip
ADD COMMENT
Topic
Name
1+1 =