Get ip address of a user in server


#1

Hi,

I want to get the ip address of a user in server side inside validatelogin method

Accounts.validateLoginAttempt(function (attempt) {
  console.log(attempt);
});

I tried this but it is showing only following details, I can’t get the ip address of a user,

anyone help me here.

Is ‘x-forward-for’ is user ip address?


#2

How about https://github.com/mizzao/meteor-user-status?


#3

I don’t need so may features just ip address, it is too much load


#4

I think this is what you are looking for http://docs.meteor.com/#/full/method_connection