Point domain name to [ip address]:[port number]

The story

Recently, countered this prob and found a few topics asking about it. However, seems no easy solutions were suggested. I found this method using only with cloudflare origin rule and tried to answer these topics but all the topics have been closed so I created this topic to write my solution.

The problem

Point a domain name to [ip address]:[port number]

The solution

After using pointing the domain name to the IP address as usual, open ORIGIN RULES under RULES button in menu. Create new Origin Rule as below.

This works unless you use HTTP/HTTPS standard ports otherwise if you use non-standard ports you will need to use other tool for other network ports see this dev doc - Network ports · Cloudflare Fundamentals docs

1 Like

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