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,
pubsub: true,
config: {
Bootstrap: ,
Addresses: {
API: “/ip4/”,
Swarm: [
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??