xpra icon
Bug tracker and wiki

Opened 3 weeks ago

Closed 3 weeks ago

#1945 closed enhancement (fixed)

support automatic port allocation

Reported by: Antoine Martin Owned by: J. Max Mena
Priority: minor Milestone: 2.4
Component: network Version: 2.3.x
Keywords: Cc:

Description

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.

Change History (2)

comment:1 Changed 3 weeks ago by Antoine Martin

Owner: changed from Antoine Martin to J. Max Mena

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.

comment:2 Changed 3 weeks ago by J. Max Mena

Resolution: fixed
Status: newclosed

Noted and closing.

Note: See TracTickets for help on using tickets.