Browser peer can't connect to Node.js peer

Hi all,

I am running js-ipfs in two peers: one runs the Node.js version and the other the browser version.

The Node.js version is installed by npm install -g ipfs. I added the following to Addresses.Swarm in ~/.jsipfs/config:

"/dns4/wrtc-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star"

Then I started it with jsipfs daemon, which shows addresses that include this one:

/dns4/wrtc-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star/ipfs/QmbDZ6adneKWnPn57rUnR26TJbHTZwdZ7CkH4pcSW4fVEH

The browser version is using the example exchange-files-in-browser whose public/js/app.js includes the WebRTC multiaddress above. When it’s started it shows its id as QmSAt1pnh4BajEXDUMWnkEWQDo4g5HPfP8jwnC5fMcnTUj.

Now I can do the following to let the Node.js peer connect to the browser peer:

jsipfs id QmSAt1pnh4BajEXDUMWnkEWQDo4g5HPfP8jwnC5fMcnTUj

I can see the browser peer’s id info.

But then if I add the Node.js peer’s address to the browser peer, I get this error:

Error: Could not dial in any of the transports or relays
    at dialCircuit (http://127.0.0.1:12345/js/bundle.js:59677:25)
    at dialCircuit (http://127.0.0.1:12345/js/bundle.js:59719:16)
    at nextTransport (http://127.0.0.1:12345/js/bundle.js:59675:18)
    at swarm.transport.dial (http://127.0.0.1:12345/js/bundle.js:59687:20)
    ...

Any pointers to how to connect the browser peer to the Node.js peer?

Thanks a lot!