Video streams are collected to encoder that is located somewhere else and we need to use servers serial port or virtual port to control cameras . How can i use another than encoders port
You cannot. The design in Milestone XProtect is that PTZ communication to the camera (or camera foot) goes thru the serial port of the encoder that encodes the camera images, there is no alternative route using any other serial port.