Trying to change default listening port in js-ipfs

Node.js Javascript client, I’m trying to change default port for instance because 4002 is already taken by other instance (I want to run multiple IPFS instances in Node.

Tryed with this:
const ipfs2_config = { repo: ‘./ipfs2’, port: ‘5001’, host: ‘localhost’, protocol: ‘http’ }
const ipfs2 = await IPFS.create(ipfs2_config)

It just ignores settings, is it even possible to change the default port? I guess yes, but I really don’t know how… Someone help me?

Edit: seems like I’ve found it:
const ipfs2_config = { repo: ‘./ipfs2’, config: { Addresses: { Swarm: [ ‘/ip4/’ ] } } }