Traccar server not serve one protocol all devices same ports

Waqas Mazhar7 years ago

Traccar server not serve one protocol all devices same ports

Waqas Mazhar7 years ago

simple i want one single protocol run on multi ports for example teletonika 20050 to 20060?

Anton Tananaev7 years ago

Is there any question?

Anton Tananaev7 years ago

It's not possible to use multiple ports for the same protocol, but I also don't see any good reason to do that.

Waqas Mazhar7 years ago

what is solution for 1000 devices send data on every event, but mostly devices not make successful with traccar,
when i restart traccar service, then these devices update data.

Waqas Mazhar7 years ago

and server load under the control

Anton Tananaev7 years ago

Using multiple ports definitely won't solve that problem. I would recommend reading this:

https://www.traccar.org/optimization/

Jack9 months ago

it work for me i use two ports in one protocol and work fine

Anton Tananaev9 months ago

Jack, what problem does it solve? Of course it could work, but the same way a single port would work as well.

Jack9 months ago

I was have many devices already configurd on port and have many other configured on defferent port when i was using other platform
so when i need to make it run on traccar instad of change the device configuration i just use the two ports.

Anton Tananaev9 months ago

This is easily solved on the OS level without any code modifications required. You can map multiple external ports to one internal.

Jack9 months ago

sorry i didnt understand what you mean

Jack9 months ago

could you please explain me what you mean, thanks.

Anton Tananaev9 months ago

If I understand it correctly, the original ask was to support multiple ports for the same protocol directly in Traccar. The justification was that it will somehow improve device communication, which is obviously incorrect.

What you're talking now is using multiple ports just so you don't need to reconfigure devices. That's a completely different use case. It is valid in general, but it does not require changes in Traccar itself. Instead the more appropriate solution would be to configure port mapping in the operating system.