How to get ip address if using SSL?

While using SSL the ip information is masked and 127.0.0.1 is shown for every user in “this.connection.clientAddress” on server side.
What would be the proper way to get the client’s IP address when using SSL?

Thanks in advance.

Have you tried this?
Source