Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get ip of user in node js

//In your request object there is a property called connection, 
//which is a net.Socket object. The net.Socket object has a property 
//remoteAddress, therefore you should be able to get the IP with this call:

request.connection.remoteAddress
Source by github.com #
 
PREVIOUS NEXT
Tagged: #ip #user #node #js
ADD COMMENT
Topic
Name
8+7 =