how can i create a subdomain with port?

i want a domain like p.test.com as example that comes from the ip 0.0.0.0:888 for example but i cant find how it works?
Was this page helpful?