How to connect to custom port in the DNS proxy mode?

I am create a dns record let’s named “a.domain” in Proxied status and I has opened a port “1234”. It can not connect to the a.domain:1234 to my server. How to solve it ?

You can’t - only specific ports work with the proxy. https://developers.cloudflare.com/fundamentals/get-started/reference/network-ports/#network-ports-compatible-with-cloudflares-proxy

You should use something like Cloudflare Tunnels where you can map a hostname (on the standard ports of 80/443) to your internal service’s port of 1234.

https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/#set-up-a-tunnel-remotely-dashboard-setup

2 Likes

Is it ok to use nginx to forward the request from proxy server of Cloudflare to my port(1234)?
I have try this way and the speed of response is slow. Is there any limit for this way?

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