Re: [Live-devel] Client IP address for RTSP streaming

2023-06-23 Thread Ross Finlayson
> On Jun 23, 2023, at 1:03 AM, Willdoner Christian via live-devel > wrote: > > I think it is a windows problem again.. > Finally I managed to filter out the IP with > char ipbuff[INET_ADDRSTRLEN]; > inet_ntop(clientAddr.ss_family, &(((struct > sockaddr_in*)

[Live-devel] Client IP address for RTSP streaming

2023-06-23 Thread Willdoner Christian via live-devel
--- Begin Message --- I think it is a windows problem again.. Finally I managed to filter out the IP with char ipbuff[INET_ADDRSTRLEN]; inet_ntop(clientAddr.ss_family, &(((struct sockaddr_in*)&clientAddr)->sin_addr), ipbuff, INET_ADDRSTRLEN); instead of the Addr

Re: [Live-devel] Client IP address for RTSP streaming

2023-06-22 Thread Ross Finlayson
> On Jun 22, 2023, at 6:50 AM, Willdoner Christian via live-devel > wrote: > > > From: Willdoner Christian > 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-devel] Client IP address for RTSP streaming

2023-06-22 Thread Willdoner Christian via live-devel
--- Begin Message --- 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 _ Christian Will

Re: [Live-devel] Client IP address for RTSP streaming

2023-06-21 Thread Ross Finlayson
> On Jun 21, 2023, at 7:52 AM, Ross Finlayson 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

Re: [Live-devel] Client IP address for RTSP streaming

2023-06-21 Thread Ross Finlayson
> On Jun 21, 2023, at 5:15 AM, Willdoner Christian via live-devel > wrote: > Is it now possible to get the IP address from each client connected to the > stream? If this is not easily done, the amount of connected clients would be > sufficient. > If doable, could you please share a code sni

[Live-devel] Client IP address for RTSP streaming

2023-06-21 Thread Willdoner Christian via live-devel
--- Begin Message --- Hello, I am establishing a RTSP Server connection for streaming H264. With m_p_rtsp_server = RTSPServer::createNew(...) and m_p_server_media_session = ServerMediaSession::createNew(...) which is added to the RTSP server instance with m_p_rtsp_server->addServerMediaSession(