ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding

I’m unable to reach a service on the machine from which the tunnel is initiated.
Setup:

  • Server via python -m http.server 12345; I can reach it via localhost:12345 or local_ip:12345
  • cloudflared via docer compose
version: "3.9"

services:
  cloudflaredtunnel:
    container_name: cloudflaredtunnel
    image: cloudflare/cloudflared:latest
    environment:
      - TUNNEL_TOKEN=MY_TOCEN
    command: tunnel --no-autoupdate run 
    restart: unless-stopped
  • Create tunnel to server.my_domain.xyz; http; local_ip:12345
  • Error message: cloudflaredtunnel | 2024-02-05T21:00:18Z ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp local_ip:12345: connect: connection refused" cfRay=850e15099c4004a4-CDG event=1 ingressRule=1 originService=http://local_ip:12345
  • When creating another endpoint to, e.g., my router via router.my_domain.xyz; https; local_router_ip it works so it has do be due to the server running on the same machine as the cloudflared docer container but I don’t understand what I have to change.

Please help me out. Thanks!

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