ScreenConnect & Cloudflare tunnel

I would like to proxy an application called ScreenConnect that uses a web server and relay server to function. The web app by default uses port 8040 for web server and 8041 for relay server. I would like to use cloudflare tunnel to achieve communication between my server and cloudflare but only port 8040 will work and not the relay server. At this point, once under CF tunnel I lose communication to the relay server causing ScreenConnect to no longer achieve connection to it’s users. Can cloudflare tunnel support this application and function correctly ? Does anyone have a solution for this as I do not wish to expose any ports on my router. Any help would be greatly appreciated.