[Libwebsockets] How to obtain the IP address of the client
brice at ydotm.com
Fri Nov 8 17:42:19 CET 2019
That's how I do it, in my protocol callback function.
int fd = 0;
fd = lws_get_socket_fd(wsi);
websocket->log(LOG_INFO, "WS protocol: websocket request from
On Fri, Nov 8, 2019 at 11:26 AM Stefano Mora <stefano.mora at newdep.com>
> Hi all,
> is there a way to get the IP address of the connected client(s) ?
> In which phase I can obtain it/them?
> I saw the lws_get_peer_addresses function but I don't have the fd
> Stefano Mora / SW Engineer
> stefano.mora at newdep.com
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets