WebSockets how to get real client IP address

Godot Version

Godot 4.2

Question

I am currently working with Godot 4.2 and WebSockets for a project, and I’m facing a challenge in obtaining the real IP address of connected clients. I would greatly appreciate any guidance or suggestions on how to achieve this.

In particular, I am interested in understanding how to retrieve the actual IP address of a client when they establish a connection through WebSockets in Godot. If anyone has experience or insights on this matter, please share your knowledge.

Thank you in advance for your assistance!

Haven’t tested it but maybe using WebSocketMultiplayerPeer.get_peer_address() may work.