NX via RTSP-TCP and VLC
AnsweredHi,
We are using the following:
- Nx 4.2.0.34860 version.
- Libvlc 4.0.0 via RTSP-TCP.
We are connecting with multiple VLCs via the NX API with RTSP-TCP from different computers to the NX server.
After some time, depending on the amount of requests, we are getting a DDOS attack alert in the NX Server.
Example from the NX server log:
- 1e98 WARNING QMessageLogContext(0x29d0d6c4748): Amount of TCP connections reached 2001 of 2000 Possible ddos attack! Reject incoming TCP connection.
What could be the problem? could it be that the VLC streams don't close the connection even if we stop the media player ? What is the proper way to close those sessions?
Thanks,
Yuval.
-
Hello,
2. In the NX client, we are trying to open the PTZ manage screen, it hangs for a while
and the request always fails to load the presets.Please, create a separate thread for this issue.
0 -
Hi Andrey,
Thanks for the replay.
I edited this post and created a new one for the other question.
Thanks.
Yuval0 -
Hi Yuval Avishid,
Nx Witness provides 2000 TCP connections by default per servers.
The connections will be used on all connection that communicates with the mediaserver, including client connections(Desktop/Web/Cloud/Mobile) and any server API calls.
In your case, probably you have too many concurrent connections to the same server at a time.
For more detail, you can refer to this article.So you may either reduce the number of the connections concurrently, or you can merge another server to this system and specify the targeted server for connection. You can specify the server IP address in your api call to achieve this.
The connection should be closed when the API calls or the stream was ended, so maybe you can check the application you developed if the connection was terminated after it is completed.
Thanks.
0 -
Hi Ichiro,
I will check this out.
Thanks, and have a great day.
Yuval0
Please sign in to leave a comment.
Comments
4 comments