Strophe: BOSH-Connection failed: improper-addressing

I have been searching for an answer on this but it dosen’t seem to exist.
Many topics address this but none of them is given a solution. Two of them are below:

I am hosting on my computer and want to use my own client.

Below is my options configuration which is getting the BOSH error:

const options = { 
    hosts: { 
        domain: '10.47.14.206:8000'
        muc: 'conference.10.47.14.206:8000'
    },
    serviceUrl: '//10.47.14.206:8000/http-bind',
    bosh: '//10.47.14.206:8000/http-bind' 
};

When i enter the bosh URL i get the website that it is working and says that i just need to use the URL i pasted in.

It works when i use the config below:

const options = { 
    hosts: {
        domain: 'beta.meet.jit.si'
        //muc: 'conference.10.47.14.206:8000'
    },
    //serviceUrl: '//10.47.14.206:8000/http-bind',
    bosh: 'https://beta.meet.jit.si/http-bind'
};

I don’t think we have great support for nonstandard ports, there might be a bug somewhere. I recommend you use standard ports, 443 to be specific, because HTTPS is necessary for WebRTC.