[Recording Server] Software taking too long to connect all camera after launching? - 20240925
Posted: September 25th, 2024, 3:52 pm
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
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 *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 *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 *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
After adjustment, try restarting the software and see if wait time for cameras connecting to the recording server software is reduced.
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
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 *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 *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 *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
After adjustment, try restarting the software and see if wait time for cameras connecting to the recording server software is reduced.