0

How would I get the LAN IP of a user connected to my node.js app ? I can get the WAN IP, but not sure how to get the LAN IP. I tried this

How can I get the local IP address in Node.js?

but all it does is give the LAN IP of the machine the node app is running on.

Community
  • 1
  • 1
user2636123
  • 65
  • 3
  • 10
  • 1
    of what use could the user's local IP be to you? if they're behind a nat gateway, they're almost guaranteed to be in one of the 3 private IP blocks anyways. – Marc B Jan 25 '14 at 02:50
  • 1
    You can't... at least not directly. And, this question has been asked at least 100 times on Stack Overflow. – Brad Jan 25 '14 at 05:27

0 Answers0