Created
April 9, 2013 13:10
-
-
Save armetiz/5345573 to your computer and use it in GitHub Desktop.
Meteor - How to get user IP on server-side
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Meteor.isServer) { | |
__meteor_bootstrap__.app.on("request", function(req, res) { | |
console.log(req.connection.remoteAddress); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not Working. but this one is working: