Cloudflare tunnel pointing to localhost redirects to localhost on local machine

Greetings, Cloudflare community!

I have an issue with Cloudflare tunnels. I have created a Cloudflare tunnel through docker, suppose with an imaginary domain example.com linked to the host localhost:5454. The Cloudflare tunnel saves successfully. However, on accessing the domain example.com, it fails to connect. I tried pinging example.com and found out that it pings 127.0.0.1 (localhost) on my local machine instead of accessing the docker container on the remote server.

I previously had a different domain through which it worked flawlessly, pinging the right IP address and container. However, it now pings 127.0.0.1 on whatever machine I try it on.

Does anyone know what the issue could be?

Thank you so much in advance!

UPDATE: The issue has been fixed. I blocked newly registered domains on NextDNS. allowlisting my domain fixed the issue.

2 Likes

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