Ok so google is my domain registrar which points to Cloudflare’s DNS. Then my main domain points to my web host namecheap. So how would I make example.website.com redirect to an address with a port number, I can get it work without the port number (000.00.00.00:0000).
Ports do not work in a DNS context. You will have to specify the port in your URL.
Is there anyway around adding it on to the end of the domain?
Either a frame (where you embed the URL with the port), but that requires an additional setup and is typically rather discouraged. Otherwise only with workers, but that would be additionally paid for each request (past the newly introduced free limit).
Ok ill look into it later thanks.