Skip to content

add https service discovery, version 114#9

Open
e-sailing wants to merge 1 commit intowellenvogel:masterfrom
e-sailing:master
Open

add https service discovery, version 114#9
e-sailing wants to merge 1 commit intowellenvogel:masterfrom
e-sailing:master

Conversation

@e-sailing
Copy link

No description provided.

@bburns
Copy link

bburns commented Jun 18, 2025

Would this be necessary to find an https service?

I tried the app to browse for an https service but didn't see anything, though I'm advertising it on my network (I think I have it working right, but not sure). Basically,

import mdns from 'mdns-js'
mdns.createAdvertisement(mdns.tcp('https'), port, {
  name,
  txt: {
    version: '1.0.0',
    path: '/',
  },
})

@wellenvogel
Copy link
Owner

BonjourBrowser is not able to browse HTTPS services.
This branch never has been merged.
The reason behind:
In local networks (where Bonjour is working) it's very unlikely that you have a valid SSL cert that is signed by a CA that is known on your Android device. So typically the browser will refuse to connect any way.
So at the end there are not many use cases for such a feature.
And I would like to avoid a lot of support queries for exactly those situations.

@bburns
Copy link

bburns commented Jun 20, 2025

okay, thanks for the response - i'm making an app that works across my network that needs a service worker to work offline, so needs https. just haven't been able to get mdns to work yet...

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

Successfully merging this pull request may close these issues.

3 participants