Cloudflare Tunnel not working with IIS. ""Unable to reach the origin service"

Hi, I'm attempting to self-host an IIS web server localhost:8080 behind a CGNAT using a Cloudflare Tunnel connected to my registrar domain. While everything seems to be set up correctly in theory, I keep encountering the following error:

"ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 127.0.0.1:8080: connect: connection refused" connIndex=1 dest=https://mydomain.com/favicon.ico event=0 ip=19X.XX.XXX.XX type=http"

My IIS Webserver Localhost:8080 port works with Ngrok, but not with Cloudflare for some reason.
unable-to-reach-the-origin-service-v0-x34q1kdc6k1e1.png
Was this page helpful?