IP adress of a method sending client


how can i get the IP adress of the requesting client within a Meteor Method on the server? I want to get these Meteor Methods to be executed from a specific IP only ( another backend server) and got to check it if its not somebody else.

thanks for your advices.

Inside a method you can use this.connection to retrieve relevant information, including the ip address.

1 Like

That’s it thanks a Lot!