You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder is 'client.connDetails.ipAddress' the right way to get the client address.
In simple MQTT example I can get the client remote address with 'client.conn.remoteAddress' but it isn't work in websocket mode. I try to console.log(client) and found out that client.connDetails.ipAddress holds value "::1"
I think because the server is running on my local machine. But I can test if it work in production environment.
Please suggest some correct way to get the client IP address.
Thanks!
The text was updated successfully, but these errors were encountered:
I created a aedes server with the code below
In preConnect handler
I wonder is 'client.connDetails.ipAddress' the right way to get the client address.
In simple MQTT example I can get the client remote address with 'client.conn.remoteAddress' but it isn't work in websocket mode. I try to console.log(client) and found out that client.connDetails.ipAddress holds value "::1"
I think because the server is running on my local machine. But I can test if it work in production environment.
Please suggest some correct way to get the client IP address.
Thanks!
The text was updated successfully, but these errors were encountered: