JS-IPFS The dial request has no valid addresses on ipfs.swarm.connect

I am trying to connect my js-ipfs node in the browser to the kubo node running in docker. When I call await ipfs.swarm.connect(new Multiaddr(‘/ip4/’));
I get the following error: Error: The dial request has no valid addresses.
Any help ?
In kubo config under swarm I appended “/ip4/” and mapped the port in docker
I am trying to fetch a file from kubo in js-ipfs