Hello! I couldn’t find answer in similar topics + examples of js-ipfs repo. There are 2 nodes. One is running in browser. Another node is running via nodejs. Both nodes are created but they don’t discover each other. Please advice on what I’m missing.
The node in browser is created this way
const node = await IPFS.create({
repo: String(Math.random() + Date.now()),
config: {
Discovery: {
MDNS: {enabled: true, interval: 5}
},
Bootstrap: [],
}
})
The nodejs node is created this way:
node = await IPFS.create({
repo: 'ipfs-' + Math.random(),
config: {
Discovery: {
MDNS: {enabled: true, interval: 5}
},
// If you want to connect to the public bootstrap nodes, remove the next line
Bootstrap: []
},
silent: false
})
The demo project is https://github.com/vogdb/ipfs-local-discovery-browser