Xpra: Ticket #1945: support automatic port allocation

So we can do:

xpra --bind-tcp=0.0.0.0:0

And let the OS choose a port number of us. Print it out and expose it via xpra info.



Tue, 04 Sep 2018 04:09:06 GMT - Antoine Martin: owner changed

Related to r20286. Done in r20287.

ie:

$ xpra start --start=xterm --bind-tcp=0.0.0.0:0 --no-daemon  --bind-ws=0.0.0.0:0
allocated tcp port 35543 on 0.0.0.0
allocated ws port 37307 on 0.0.0.0
(..)

This works with all socket types, including UDP, and the correct port number is shown in the mdns session browser.

@maxmylyn: just a FYI.


Tue, 04 Sep 2018 16:22:54 GMT - J. Max Mena: status changed; resolution set

Noted and closing.


Sat, 23 Jan 2021 05:38:00 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1945