I have been using PHP Ratchet with Stunnel for SSL. It's working well. But the problem is, I can't get users real IP address.
I already tried these
$conn->remoteAddress
and with this I am getting 127.0.0.1 (local address)
$conn->WebSocket->request->getHeader('X-Forwarded-For');
and with this I am getting nothing.
Any help!