Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdns discovery of sessions #1332

Closed
totaam opened this issue Oct 6, 2016 · 6 comments
Closed

mdns discovery of sessions #1332

totaam opened this issue Oct 6, 2016 · 6 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Oct 6, 2016

Issue migrated from trac ticket # 1332

component: core | priority: major | resolution: fixed

2016-10-06 08:43:21: antoine created the issue


Make mdns more useful.

It should be easier to see which sessions are available on the LAN.
Tools like avahi-discover aren't very user friendly and don't know about our service type.. (#731)

@totaam
Copy link
Collaborator Author

totaam commented Oct 6, 2016

2016-10-06 09:01:28: antoine changed owner from antoine to afarr

@totaam
Copy link
Collaborator Author

totaam commented Oct 6, 2016

2016-10-06 09:01:28: antoine commented


  • r14008 cleanup, move mdns bits to a sub-package
  • r14009 + r14010: expose the server uuid in the mdns data
  • r14011 + r14013: "list-mdns" subcommand
  • r14012 add support for building --without-mdns

Notes:


Example:

$ xpra start --bind-tcp=0.0.0.0: --mdns=yes --session-name=hello
$ xpra list-mdns
Looking for xpra services via mdns
* user 'antoine' on 'desktop.local'
 session 'hello', uuid=bce14c3aeed34c7892aea576ea8d78a8
 + ssh endpoint on host 192.168.1.200, port 22, interface eth1
   "ssh/[email protected]:22/2"
 + tcp endpoint on host 192.168.1.200, port 14500, interface eth1
   "tcp/[email protected]:14500/2"
1 service found
$ xpra info | grep uuid
server.uuid=bce14c3aeed34c7892aea576ea8d78a8

(works equally well for ssl sockets and the quoted uri should be usable as-is)

@afarr: mostly a FYI.

@totaam
Copy link
Collaborator Author

totaam commented Oct 12, 2016

2016-10-12 07:18:30: antoine commented


Pull request for avahi: add Xpra service type

@totaam
Copy link
Collaborator Author

totaam commented Oct 24, 2016

2016-10-24 20:25:16: maxmylyn changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Oct 24, 2016

2016-10-24 20:25:16: maxmylyn set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented Oct 24, 2016

2016-10-24 20:25:16: maxmylyn commented


Neat. Closing.

Note: if a server is on the non-standard port, this will not find it. Makes sense(because one would be deviating from the standard, and it'd be unreasonable to try to check every single port), but just wanted to note it for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant