Reduce the number of instances of port errors
mosaik always starts a server on port 5555 to accept incoming connections (for simulators started with "cmd"
), unless the port is explicitly changed in the mosaik_config
. This prevents running multiple mosaik processes in parallel, unless you adapt the port in each one (except the first). This seems unnecessarily cumbersome:
- mosaik could postpone the creation of the server until a
"cmd"
simulator in actually started, which would eliminate the need for ports completely in many cases - Instead of a hard-coded port, mosaik could request any free port from the operating system, which would allow multiple servers in parallel.