Re: [X2Go-User] socket bind error with Windows client

2023-03-15 Thread Ulrich Sibiller
Hi Hanno,

The second to last line shows x2goclient is (still) listening to port
57030 for further connections, so I think this is the ssh master
connection.
The second connection is from nxproxy to your local X server.
The first and the last line show a tcp connection between nxproxy and
x2goclient, using the 57030 port. I guess this is the connection from
the nxproxy to the nxagent on the server, tunneling through the master
connection.

So far, so good. So all this probably means that x2goclient is always
selecting port 57030 for the master connection. I have no idea why it
behaves like that. But this must not necessarily be a problem itself.
I think before you rebooted there was simply a hanging ssh master
connection blocking that port.

In the source code there's no evidence of 57030 being hardcoded so it
is probably tied to your system. Can you confirm that after another
(or multiple) reboot(s) it is still using 57030?

Uli

On Wed, Mar 15, 2023 at 12:06 PM Hanno Foest  wrote:
>
> Hi,
>
> I didn't manage to gather any useful (apparently related) info with
> x2goclient.exe --debug, but when running
>
> NETSTAT.EXE -ban | Select-String -patt "57030" -context 2,3
>
> in powershell with admin rights repeatedly during connection gives me
>
> >   TCP127.0.0.1:59450127.0.0.1:6002 WARTEND
> TCP127.0.0.1:59451127.0.0.1:57030
> SYN_GESENDET
> [x2goclient.exe]
>
> briefly before the error appears. (Note: It's been again 57030 and not
> something random.) After rebooting Windows, I was able to connect to my
> x2go session again. Running the above command again gives me
>
> >   TCP127.0.0.1:52146127.0.0.1:57030HERGESTELLT
>[nxproxy.exe]
> TCP127.0.0.1:52148127.0.0.1:6000 HERGESTELLT
>[nxproxy.exe]
> >   TCP127.0.0.1:570300.0.0.0:0  ABHÖREN
>[x2goclient.exe]
> >   TCP127.0.0.1:57030127.0.0.1:52146HERGESTELLT
>[x2goclient.exe]
>
> so I would guess indeed something is not listening which should be listening,
> when the error appears...
>
> Hanno
>
> On Wed, Mar 08, 2023 at 05:28:49PM +0100, Ulrich Sibiller wrote:
> > I am not sure where the tunnel is created (there's ssh communication
> > in both directions) so better check the port on the server side, too.
> >
> > You can run x2goclient.exe --debug --sshlib-debug --session="your
> > session name" and you will find logfile in  > directory>/.x2go/sshLogs. Maybe that helps to identify the problem.
> >
> > Uli
> ___
> x2go-user mailing list
> x2go-user@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] socket bind error with Windows client

2023-03-15 Thread Hanno Foest
Hi,

I didn't manage to gather any useful (apparently related) info with
x2goclient.exe --debug, but when running

NETSTAT.EXE -ban | Select-String -patt "57030" -context 2,3

in powershell with admin rights repeatedly during connection gives me

>   TCP127.0.0.1:59450127.0.0.1:6002 WARTEND
TCP127.0.0.1:59451127.0.0.1:57030
SYN_GESENDET
[x2goclient.exe]

briefly before the error appears. (Note: It's been again 57030 and not
something random.) After rebooting Windows, I was able to connect to my
x2go session again. Running the above command again gives me

>   TCP127.0.0.1:52146127.0.0.1:57030HERGESTELLT
   [nxproxy.exe]
TCP127.0.0.1:52148127.0.0.1:6000 HERGESTELLT
   [nxproxy.exe]
>   TCP127.0.0.1:570300.0.0.0:0  ABHÖREN
   [x2goclient.exe]
>   TCP127.0.0.1:57030127.0.0.1:52146HERGESTELLT
   [x2goclient.exe]

so I would guess indeed something is not listening which should be listening,
when the error appears...

Hanno

On Wed, Mar 08, 2023 at 05:28:49PM +0100, Ulrich Sibiller wrote:
> I am not sure where the tunnel is created (there's ssh communication
> in both directions) so better check the port on the server side, too.
> 
> You can run x2goclient.exe --debug --sshlib-debug --session="your
> session name" and you will find logfile in  directory>/.x2go/sshLogs. Maybe that helps to identify the problem.
> 
> Uli
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] socket bind error with Windows client

2023-03-08 Thread Ulrich Sibiller
I am not sure where the tunnel is created (there's ssh communication
in both directions) so better check the port on the server side, too.

You can run x2goclient.exe --debug --sshlib-debug --session="your
session name" and you will find logfile in /.x2go/sshLogs. Maybe that helps to identify the problem.

Uli


On Wed, Mar 8, 2023 at 5:06 PM Hanno Foest  wrote:
>
> Hi,
>
> I tried to check with netstat, as I mentioned. My Windows doesn't seem
> to have lsof, and my Windows knowledge is somewhat limited... of course
> I can check next time it happens, but I need some info on how to check.
>
> Hanno
>
> On Wed, Mar 08, 2023 at 04:48:27PM +0100, Ulrich Sibiller wrote:
> > Hi,
> >
> > have you checked (e.g. with lsof -i :) if the port _really_ in use?
> >
> > Uli
> >
> > On Wed, Mar 8, 2023 at 10:50 AM Hanno Foest  wrote:
> > >
> > > Hello,
> > >
> > > randomly (about one in three attempts) when I try to connect to one of
> > > my x2go sessions, it doesn't work and I'm getting the error
> > >
> > > Can't create SSH tunnel for the start of the X2GO Session (NX):
> > > socket bind error localhost:57030
> > >
> > > (translated from German, hope it's correct).
> > >
> > > netstat doesn't seem to list the port as being in use. So far I didn't
> > > find any other way to recover the situation other than rebooting, which
> > > is a bit of a hassle sometimes.
> > >
> > > Client is "X2GoClient V. 4.1.2.2 (Qt - 4.8.6)"
> > >
> > > Curiously, the second x2go session I use to seems to connect without
> > > issues all the time.
> > >
> > > In case it matters: The machine is connected using OpnnVPN. Turning off
> > > antivirus didn't make a difference.
> > >
> > > Any ideas?
> > >
> > > - Hanno
> > > ___
> > > x2go-user mailing list
> > > x2go-user@lists.x2go.org
> > > https://lists.x2go.org/listinfo/x2go-user
> ___
> x2go-user mailing list
> x2go-user@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] socket bind error with Windows client

2023-03-08 Thread Hanno Foest
Hi,

I tried to check with netstat, as I mentioned. My Windows doesn't seem
to have lsof, and my Windows knowledge is somewhat limited... of course
I can check next time it happens, but I need some info on how to check.

Hanno

On Wed, Mar 08, 2023 at 04:48:27PM +0100, Ulrich Sibiller wrote:
> Hi,
> 
> have you checked (e.g. with lsof -i :) if the port _really_ in use?
> 
> Uli
> 
> On Wed, Mar 8, 2023 at 10:50 AM Hanno Foest  wrote:
> >
> > Hello,
> >
> > randomly (about one in three attempts) when I try to connect to one of
> > my x2go sessions, it doesn't work and I'm getting the error
> >
> > Can't create SSH tunnel for the start of the X2GO Session (NX):
> > socket bind error localhost:57030
> >
> > (translated from German, hope it's correct).
> >
> > netstat doesn't seem to list the port as being in use. So far I didn't
> > find any other way to recover the situation other than rebooting, which
> > is a bit of a hassle sometimes.
> >
> > Client is "X2GoClient V. 4.1.2.2 (Qt - 4.8.6)"
> >
> > Curiously, the second x2go session I use to seems to connect without
> > issues all the time.
> >
> > In case it matters: The machine is connected using OpnnVPN. Turning off
> > antivirus didn't make a difference.
> >
> > Any ideas?
> >
> > - Hanno
> > ___
> > x2go-user mailing list
> > x2go-user@lists.x2go.org
> > https://lists.x2go.org/listinfo/x2go-user
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] socket bind error with Windows client

2023-03-08 Thread Ulrich Sibiller
Hi,

have you checked (e.g. with lsof -i :) if the port _really_ in use?

Uli

On Wed, Mar 8, 2023 at 10:50 AM Hanno Foest  wrote:
>
> Hello,
>
> randomly (about one in three attempts) when I try to connect to one of
> my x2go sessions, it doesn't work and I'm getting the error
>
> Can't create SSH tunnel for the start of the X2GO Session (NX):
> socket bind error localhost:57030
>
> (translated from German, hope it's correct).
>
> netstat doesn't seem to list the port as being in use. So far I didn't
> find any other way to recover the situation other than rebooting, which
> is a bit of a hassle sometimes.
>
> Client is "X2GoClient V. 4.1.2.2 (Qt - 4.8.6)"
>
> Curiously, the second x2go session I use to seems to connect without
> issues all the time.
>
> In case it matters: The machine is connected using OpnnVPN. Turning off
> antivirus didn't make a difference.
>
> Any ideas?
>
> - Hanno
> ___
> x2go-user mailing list
> x2go-user@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user