title: How to get the user IP address in Meteor server?
body: <p>I would like to get the user IP address in my meteor application, on the server side, so that I can log the IP address with a bunch of things (for example: non-registered users subscribing to a mailing list, or just doing anything <em>important</em>).</p>
  
  <p>I know that the IP address 'seen' by the server can be different than the real source address when there are reverse proxies involved. In such situations, <code>X-Forwarded-For</code> header should be parsed to get the real public IP address of the user. Note that parsing <code>X-Forwarded-For</code> should not be automatic (see <a href="http://www.openinfo.co.uk/apache/index.html">http://www.openinfo.co.uk/apache/index.html</a> for a discussion of potential security issues).</p>
  
  <p>External reference: This question came up on the <a href="https://groups.google.com/forum/?fromgroups=#!msg/meteor-talk/ebv8U3par_c/">meteor-talk mailing list in august 2012</a> (no solution offered).</p>