> On Jun 22, 2023, at 6:50 AM, Willdoner Christian via live-devel 
> <live-de...@us.live555.com> wrote:
> 
> 
> From: Willdoner Christian <christian.willdo...@voestalpine.com>
> Subject: [Live-devel] Client IP address for RTSP streaming
> Date: June 22, 2023 at 6:50:21 AM PDT
> To: "live-devel@lists.live555.com" <live-de...@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/


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to