Hot to map subdomains to IP:Port of host server

I have a router with a public IP and a set of servers running in a private network. I purchased a domain name and I want to map a set of subdomains to several ports of the router which are port forwarded to access the servers from the private network. For instance:
subdomain1.mydomain.com β†’ PUBLIC_IP:PORT1
subdomain1.mydomain.com β†’ PUBLIC_IP:PORT2
etc.
Is this possbile using Cloudflare service?

You can write your own Worker if you’re good at Javascript, or subscribe to the Portzilla service:

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.