connect fomain to flask webserver

Hey, i have a python webserver (more specifically a api hosted wirh flask) is there any way to connect my domain to it (it use port 3044)?
8 Replies
Lumonix
Lumonix5w ago
Cloudflare Docs
Network ports | Cloudflare Fundamentals docs
Learn which network ports Cloudflare proxies by default and how to enable Cloudflare’s proxy for additional ports.
Lumonix
Lumonix5w ago
cloudflare doesn't support port 3044 You will need to do something like listen on a cloudflare-supported port, and forward packets to the API
numberstorm
numberstorm5w ago
Not even with dns only?
Cyb3r-Jak3
Cyb3r-Jak35w ago
You can with DNS only. You just need to add the IP address of the origin running the service. You’ll need to add the port to the URL as it is non standard
numberstorm
numberstorm5w ago
Cant i add like a srv record?
Cyb3r-Jak3
Cyb3r-Jak35w ago
That only works if the service checks for SRV records which browsers don’t support
Cyb3r-Jak3
Cyb3r-Jak35w ago
The best way is using an origin rule to rewrite the destination port; https://developers.cloudflare.com/rules/origin-rules/features/#destination-port
Cloudflare Docs
Available settings | Cloudflare Rules docs
The following sections describe the available settings in Origin Rules.
numberstorm
numberstorm5w ago
Hmm, tysm
Want results from more Discord servers?
Add your server