Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Can't connect nodejs and browser nodes #1219

Closed
@JoseMiguelHerrera

Description

@JoseMiguelHerrera

I know this has been discussed many times, but my app is dependant on this functionality and after days of testing I can't get it to work.

First I tried connecting my go-ipfs node with the browser node, to no avail. I did this by attempting the reverse proxy nginx method (using websockets), but I could not get it to connect.

Right now I'm trying the the nodejs node using p2p-websocket-star as I've seen being mentioned.

My server node config:

    "Addresses": {
        "Swarm": [
            "/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star"
        ],
        "API": "/ip4/127.0.0.1/tcp/5002",
        "Gateway": "/ip4/127.0.0.1/tcp/9090"
    },

My browser config:

const node = new IPFS({
  "Addresses": {
    "Swarm": [
    ],
    "API": "",
    "Gateway": ""
  },
  "Discovery": {
    "MDNS": {
      "Enabled": false,
      "Interval": 10
    },
    "webRTCStar": {
      "Enabled": true
    }
  },
  "Bootstrap": [
    "/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star/ipfs/QmVNqmWGV248kCZpJq2yXSYzTQi5the7vxs82HLfZj3tcK"
  ]
});

I don't really care how, but I need to get my browser node detecting the server node to fetch objects.

Help would GREATLY be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportA question or request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions