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
Lumonix3mo 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
Lumonix3mo 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
numberstormOP3mo ago
Not even with dns only?
Cyb3r-Jak3
Cyb3r-Jak33mo 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
numberstormOP3mo ago
Cant i add like a srv record?
Cyb3r-Jak3
Cyb3r-Jak33mo ago
That only works if the service checks for SRV records which browsers don’t support
Cyb3r-Jak3
Cyb3r-Jak33mo 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
numberstormOP3mo ago
Hmm, tysm
Want results from more Discord servers?
Add your server