clientAddress is undefined on production server


In development, my ip address has always been defined (albeit But depoying on production server it is not set. “this.connection” only has fields “id” and the “httpHeaders” object (which has x-forwarded-for set as expected). I tried playing around with HTTP_FORWARDED_COUNT, but that shouldn’t give this problem, it would just report the wrong IP since my production server is using cloudflare and so 2 ip addresses should be in the http headers, which there are.

I am deploying my production site with phusion passenger using nginx. Another difference between development and production is that my home ip is ipv6, vs ip4 localhost. Also, I’m using somewhat old meteor (1.2.1). Thanks for any suggestions.