Traccar server is not listening to port 5001

Bernhard 8 months ago

I have installed traccar server on my home assistant as an add on.
It is running and I can access the gui.
Is there anything else to do so it is listening to ports? When I telnet to the server with port 5001 I can’t establish a connection.
Maybe home assistant needs to forward ports or something?

Anton Tananaev 8 months ago

Have you checked if the port is open locally?

Bernhard 8 months ago

So i dont quite know where the XML file is where I have to add the ports.
There is nothing in the documentation about this and apparently everyone find it so it must be obvious but not for me.
I use the File Editor Add on and am in homeassistant/ where my configuration.yaml is. There is no traccar.xml in this folder but when I create it and reboot its gone at the next reboot.

So I try to add it in the docker somewhere but when I try locally to access the port I have no success. So either HomeAssistant is blocking it or the Traccar Add on has not opened it at all.

Thanks for your help.

Anton Tananaev 8 months ago

How are you checking it locally? If it's a docker, you have to check from inside the container.

Bernhard 8 months ago

I added it in the container in config/traccar.xml and now its working.
Not very user friendly from HomeAssistant and some documentation of how to add it would be nice but thats how it is :-)