Working on an application that uses cameras.
The camera controller has a single IP address (I can define that IP) on the network and each camera is accessed using that IP plus a Port. The controller can have up to 250 cameras.
Currently there are three cameras and I want to be able to assign Ports in lumps, as in... 6510, (Reception) 6520, (Dock) 6530 (Parking Lot) such that I can add extra cameras and assign Ports appropriate to the camera's physical location, as in... 6510 and 6511 will be physically close to each other, as would 6520, 6521 and 6522 be close.
How can I find a range of available Ports? I have searched the Internet and found a few sites that outline commonly used Port numbers, but I would like to find a free-range for the individual PC the software is installed on.
How can I scan for unused Ports?
Netstat
will show you which ports are currently in use; just pick some that aren't.