[Live-devel] Client IP address for RTSP streaming

Ross Finlayson finlayson at live555.com
Wed Jun 21 10:30:13 PDT 2023



> On Jun 21, 2023, at 7:52 AM, Ross Finlayson <finlayson at live555.com> wrote:
> 
> virtual ClientConnection* createNewClientConnection(int clientSocket, struct sockaddr_storage const& clientAddr) {
> // The client’s IP address is in “clientAddr”; do what you want with it here

In particular, if you want to get the IP address (IPv4 or IPv6)  in human-readable ASCII form, you can do so by calling
	AddressString(clientAddr).val()


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list