paulo andre jannke you were never supposed to change the default config file, as mentioned previously. Make sure you read the documentation before asking for help.
Dear, I had to change it a long time ago due to a carrier block on port 5001, so I changed all the trackers to 5000 and changed the defaut.xml, now I don't know how I can use it without having to change all the trackers again..
You already have the answer. I'm just pointing out that what you did before was against all the recommendations and warnings that we had. That's exactly why we removed that file.
What you should have done always is add a new line to traccar.xml:
<entry key='tk103.port'>5000</entry>
That was always the case and it was always the way it should have been done on all versions of Traccar.
Question that many are asked, how to change port 8082, and protocol port to another port in ver 6.2?
Read documentation. It tells you how to do it.
Thanks Anton, it's for people who don't know where to look for it, like me at the time hehehehe
You click "documentation" on the top of this page and study all the docs there. That's in case it's your first time using Internet and you don't know how to use search.
Mr Anton. always so direct in the answers, greetings and excellent work!
protocols.enable config
List of protocols to enable. If not specified, Traccar enabled all protocols that have port numbers listed. The value is a comma-separated list of protocol names. Example value: teltonika,osmand
We are dumb, RTFM :)
I don't think we're dumb. I'm sure when I started using Traccar a couple of years ago, editing default.xml was the recommended way to disable protocols/ports. But the protocols.enable
setting is so much nicer, and it makes upgrades so much easier because I just need to copy over traccar.xml.
the line "DO NOT MODIFY THIS FILE. Use traccar.xml instead." It was included in the default.xml on Sep 22, 2018, so it's not that you are dumb, you have just ignored the developer's recommendations for 6 years and are you surprised now? Then you wonder why Anton is direct and rude with his answers?..........
Just to be clear, at some point a long time ago the only way to disable ports was via modifying the default xml file. That was the only exception to the rule for "DO NOT MODIFY THIS FILE". For other things like filtering, notifications etc it was always recommended to do it in the traccar xml file.
I checked my upgrade notes, I think it's there since 5.2, which is less than two years old.
Just set the right port in traccar.xml
<entry key='tk103.port'>5000</entry>