PTZ Functionality Fails in Some Environments Despite Same VMS and Credentials

Hi,

I am using the Component SDK sample PTZandPresets to test PTZ functionality and PTZ actions works correctly.

However, in some environments, despite using the same VMS, camera, and credentials, PTZ does not work. While clicking the “Start Move” button (highlighted in attached screenshot), the application shows a loading indicator for about 4 to 5 seconds, but the camera does not move.

The same issue is also observed in the Milestone XProtect Smart Client, where it displays a message “PTZ command to camera failed. The server is not available” error when performing PTZ actions.

Please advise if there are any specific ports that need to be opened for PTZ to function properly?

The Smart Client, or your MIP SDK based client, will send then commands directly to the Recording Server, if using defaults it is the port 7563 in the Recording Server. See more info here.
What you have must be a general issue, not a SDK issue, most likely on the connectivity with the server.