Hi all,
This subject was already discussed here, but since no solution exists till
now, I've hacked not ideal but practical solution.
Attached patch should minimize chances of conflicting ports x2goserver is
using.
On the first run, x2gostartagent script randomly selects ports from
specific range (30000-30099) and save them to config file to be used for
the following sessions.
Later one can tune those values in config file
(/etc/x2go/x2goagent.options).
Regards