[Recording Server] Software taking too long to connect all camera after launching? - 20240925

Recording Server
support
Posts: 647
Joined: December 27th, 2014, 8:37 am

[Recording Server] Software taking too long to connect all camera after launching? - 20240925

Unread post by support »

Question:
Why does it take a very long time for all cameras to connect after launching GV-Recording server?

Answer:
GeoVision has recently encountered a case where it takes a very long time for the cameras to be connected after user launches recording server software and it was later confirmed it was due to Windows port limitation creating a queue waiting for the next port to be made available for connection.

If you encounter a similar case, you may first verify if the ports needed by the software is limited:
*Note please make sure GV-Software is running while attempting this*

1. Launch and run Windows PowerShell by as Windows Administrator
2024-09-25_15h45_34.png
2024-09-25_15h45_34.png (239.47 KiB) Viewed 1073 times

2. In the command prompt, enter the following command to see the ports currently in use.
Get-NetTCPConnection | Where-Object { $_.State -in 'Established', 'Listen', 'TimeWait' } | Group-Object -Property State | Select-Object Name, Count
2024-09-25_15h31_40.png
2024-09-25_15h31_40.png (69.25 KiB) Viewed 1073 times
*From the example above, the total port in use is 2150+66+15906=18122*


3. From the same command prompt window, enter the following command.
netsh int ipv4 show dynamicport TCP
2024-09-25_15h37_49.png
2024-09-25_15h37_49.png (14.68 KiB) Viewed 1073 times
*From this example, the maximum number of ports available is 16384*

Therefore, this suggests the port needed by software (18122) is limited by the current setting (16384)

To improve this, we can try adjusting the maximum dynamic TCP port limit:

1. In the PowerShell window, please then enter the following command to set the maximum limit to 64512
netsh int ipv4 set dynamic tcp start=1024 num=64512
2024-09-26_10h22_40.png
2024-09-26_10h22_40.png (10.2 KiB) Viewed 1050 times
*Starting with port 1024 and enable 64512 number of ports to reach maximum of 65535)

2. Enter the following command to verify if change is made successfully (no Windows restart required)
netsh int ipv4 show dynamicport TCP
2024-09-26_10h23_27.png
2024-09-26_10h23_27.png (17.39 KiB) Viewed 1050 times


After adjustment, try restarting the software and see if wait time for cameras connecting to the recording server software is reduced.
Post Reply