Can't connect to private network through http client

I have a separate ipfs node running created through ipfs core.
This is the config used to create the node
let ipfsConfig: any = {
repo: AppConfig.ipfs.repo,
EXPERIMENTAL: {
pubsub: true,
},
config: {
Bootstrap: ,
Addresses: {
API: β€œ/ip4/0.0.0.0/tcp/5001”,
Swarm: [
β€œ/ip4/0.0.0.0/tcp/4002”,
β€œ/ip4/0.0.0.0/udp/4002/quic”,
β€œ/ip4/0.0.0.0/tcp/4003/ws”,
],
},
},
libp2p: {
connectionProtector: preSharedKey({
psk: swarmKey
})
},
}
It has as event handler via libp2p connectionManager.
If I try to create a simple client server through ipfs-http-client create module connection refused error is being thrown. Is there something I am missing??