1 | | Replying to [comment:13 Antoine Martin]: |
2 | | > Merged in r23767. |
3 | | > As of r23770, the client can also be told where to connect, instead of just expecting a server connection: |
4 | | > {{{ |
5 | | > xpra listen --bind-tcp=0.0.0.0:10001 |
6 | | > }}} |
7 | | > {{{ |
8 | | > echo tcp://192.168.1.10:10000 | socat - TCP:localhost:10001 |
9 | | > }}} |
10 | | > The client will print: |
11 | | > {{{ |
12 | | > closing tcp socket 0.0.0.0:10001 |
13 | | > connecting to tcp://192.168.1.10:10000 |
14 | | > }}} |
15 | | > Then proceeds as if it had been started with {{{attach tcp://192.168.1.10:10000}}}. |
16 | | > |
17 | | > |
18 | | > Caveats: |
19 | | > * only the first connection will be used, after that the sockets are closed. |
20 | | > (so if the connection fails at that point, the client will just exit) |
21 | | > * the client doesn't do any socket wrapping, so tcp sockets can't be upgraded to ssl, ssh or ws(s). |
22 | | > |
23 | | > Will follow up in #2412 |
24 | | > |
25 | | > |