Invalid remote address during deployment

I have deployed my application to my personal server and I am using nginx with Phusion Passenger.

This simple code:

Router.map(function () {
    this.route('playground/remoteAddress', {
        where: 'server',
        action: function () {
            var remoteAddress = this.request.connection.remoteAddress;
            this.response.end(remoteAddress);
        }
    })
});

      

Always returns 127.0.0.1

I am assuming there is some component in the middle that is making the request. Meteorite server and application run on the same computer.

I am using this code for free hosting meteor: http://remote-ip.meteor.com and it returns 10.37.38.22

which is clearly not correct.

I cannot check the external IP call of some services, for example: payment callback

+3


source to share





All Articles