use ip instead of connection.remoteAddress

see express.js request documentation