Traccar Port 8082 and Port 5055, not working with Cloudflare Tunnel

Nv3#6xP%%WuJoYM73 years ago

Hello guys!

So I have an Ubuntu 20.04 LXC container, running at Proxmox Platform. I installed the traccar.run and it was fine. No errors.

But Cloudflare Tunnel responded 502 Bad Gateway Error.


Screenshot Error:
Screenshot Error


Here's my configuration:
Here's my configuration


Traccar Client Logs on Android:
Traccar Client Logs on Android

The localhost is working fine. Is it me that has errors or it's Cloudflare?

Thank you.

Anton Tananaev3 years ago

It seems like you're using a local IP address. How would CloudFlare access it? Not an expert, but seems wrong to me.

Nv3#6xP%%WuJoYM73 years ago

Cloudflare Tunnel is a free ngrok.io alternative.

The value of the hostname is the domain (e.g. demo.traccar.org).

- hostname: track.mydomain.com
  service: http://192.168.0.251:8082
- hostname: devices.mydomain.com
   service: http://192.168.0.251:5055
- service: http_status:404

The track.mydomain.com is the URL for the web interface. [Accessible via internet]
The devices.mydomain.com is what I put in the Server URL on the Traccar Client. [Accessible via internet]

I chose Cloudflare Tunnel over ngrok.io because Cloudflare Tunnel provides a custom domain for free. Unlike ngrok.io, you need to pay 5 USD/month for the custom domain.

I also asked their community regarding my issue (still waiting for their reply). I will share the solution once I solve it.

Thanks for replying, @Anton! :)

Anton Tananaev3 years ago

Is it software that runs on the same server? Wouldn't you just use localhost in that case instead?

Nv3#6xP%%WuJoYM73 years ago

I run the Cloudflare Tunnel software on a separate Ubuntu Server 20.04 LXC Container.
Traccar has also its own Ubuntu Server 20.04 LXC container.

The Traccar Client on Android detected port 5055 as online, but can't send the device's location. It's really weird. Maybe Cloudflare blocks the communication between the Client and the Traccar Server via Tunnel.

12:07:56 AM - Network Online
12:07:56 AM - Location Update
12:07:56 AM - Send failed

My Internet Subscription Plan is behind CGNAT, that's why I use a tunneling service to expose my servers to the internet.

Vijay2 years ago

Hi @Nv3#6xP%%WuJoYM7 , did you find the solution for this issue. I have the exact same thing to implement

Segarra5 months ago

Jelou... any solution?