Get ip address of a user in server

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?

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

1 Like

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

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