[Live-devel] Client IP address for RTSP streaming
Ross Finlayson
finlayson at live555.com
Thu Jun 22 12:10:47 PDT 2023
> On Jun 22, 2023, at 6:50 AM, Willdoner Christian via live-devel <live-devel at us.live555.com> wrote:
>
>
> From: Willdoner Christian <Christian.Willdoner at voestalpine.com>
> Subject: [Live-devel] Client IP address for RTSP streaming
> Date: June 22, 2023 at 6:50:21 AM PDT
> To: "live-devel at lists.live555.com" <live-devel at us.live555.com>
>
>
> Thank you for the code! it seems to work, except the AddressString(clientAddr).val() seems not to output what I want. Can you please elaborate a bit more what should I get here?
> Right now I get some strange ASCII characters
That’s odd. If I add the following line at “liveMedia/RTSPServer.cpp”, line 2031 (just before the “return” statement)
fprintf(stderr, "#####@@@@@ clientAddr: %s\n", AddressString(clientAddr).val());
and build and run the server, I get (for the first client connection):
#####@@@@@ clientAddr: 172.31.15.153
This should work if you put it inside your own “createNewClientConnection()”. I don’t know why it’s not working for you.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list