Add remote_ip support

Hi,

Could you consider to merge this change?
I have a trouble when I have proxies in local and ```request.ip``` returns private IP address.