The problem of access is solved by removing and installing the server again.

server:
apt-get remove --purge x2goserver
rm -rf ~/.x2go
ps -ef | grep x2go, then kill all processes listed
apt-get install x2goserver