misterhay / VISCA-IP-Controller

Python code for controlling PTZ cameras using VISCA commands over IP
The Unlicense
82 stars 28 forks source link

Connect using system selected local port #20

Closed gbrchill closed 1 year ago

gbrchill commented 1 year ago

Rather than using the port number from the camera end pass the symbolic value 0 in as the port number. This allows the system to choose any available port number to connect on. The socket can then be queried to get the actual port number.

This change allows multiple cameras to be active at the same time as they are now using system selected free local port numbers.