Unfortunately, it created a different error:
All this code is new, so I'm not surprised. :)
Connection failed. /usr/lib/x2go/x2gogetfreeport: line 47: typeset: '65535': syntax error: operand expected (error token is "'65535'")
Hmm, that line doesn't match up with the actual sources. I see what's going on. That'll require some more work.
Please apply https://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=b1341c2d9aaac8e...
Mihai