TrinityTuts Tips

Get the client’s IP address in socket.io 2.2

In this post, I am going to share simple code snippet to get the IP address of the client in socket.io.

socket.request.headers.referer

Hope this code helps you.