Subdomain with port

Hello guys i have problem,
I have a private domain but I want to create one
subdomain * Moves the person to port 31

The main domain without a subdomain, I want him to transfer the person, port 25565, but any subdomain (*) transfers the person to 31

Welcome to the Cloudflare Community.

Cloudflare does not support either of those ports. Additionally DNS only maps names to adresses. It does not change ports.