Description of problem: NodeJS server doesn't seem to be able to access client's IP address when using websocket protocol. Given a NodeJS server: let ws = require("ws"); let server = new ws.Server({host: process.env.OPENSHIFT_NODEJS_IP, port: 8080}); server.on('connection', function connection(conn) { console.log(conn.upgradeReq.headers); }); Following headers are logged: connection, upgrade, sec-websocket-version, sec-websocket-key, origin, host Host header contains reverse proxy's ip:port, x-forwarded-for header is missing.
Hi Mirano, We've recently merged a fix for this, it should be rolled out to OpenShift Online soon. For now, I'm going to close this in favor of the duplicate bug. If you are still seeing this problem in a week or so, please comment on the duplicate bugzilla. Thanks. *** This bug has been marked as a duplicate of bug 1313395 ***