You shouldn't need to configure anything in the config file. All ports are enabled by default.
If it still doesn't work, make sure you follow the troubleshooting guide.
ok I will remove the configuration and test but the fact that I configured the port on teccar.xml could this be the cause of the occupation of the port by another service?
You need to check logs to see if there are any port conflicts. There is no point in guessing.
I have restored the Traccar configuration on my VPS to the original settings (using <properties> as it came by default), but the problem remains unchanged.
The GPS device (GT06) still shows as offline on my VPS Traccar server, even though it works fine on the Traccar Demo server using the same port 5023. I have verified that TCP is open and used, but UDP is not recognized.
here are my log
root@srv1019209:~# tail -n 40 /opt/traccar/logs/tracker-server.log
2025-09-25 15:36:52 INFO: Started o.t.w.@415e84d8{/,null,AVAILABLE}
2025-09-25 15:36:52 INFO: Session workerName=node0
2025-09-25 15:36:52 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2025-09-25 15:36:52 INFO: Started o.e.j.s.ServletContextHandler@5588536f{/,null,AVAILABLE}
2025-09-25 15:36:52 INFO: Started ServerConnector@67cbec0a{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2025-09-25 15:36:52 INFO: Started Server@6a28b76c{STARTING}[11.0.19,sto=0] @5278ms
2025-09-25 15:37:07 INFO: Operating system name: Linux version: 6.8.0-79-generic architecture: amd64
2025-09-25 15:37:07 INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.6+10
2025-09-25 15:37:07 INFO: Memory limit heap: 1986mb non-heap: 0mb
2025-09-25 15:37:07 INFO: Character encoding: UTF-8
2025-09-25 15:37:07 INFO: Version: 5.12
2025-09-25 15:37:07 INFO: Starting server...
2025-09-25 15:37:07 INFO: Health check enabled with period 480000
2025-09-25 15:37:07 INFO: HikariPool-1 - Starting...
2025-09-25 15:37:08 INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./data/database user=SA
2025-09-25 15:37:08 INFO: HikariPool-1 - Start completed.
2025-09-25 15:37:08 INFO: Set default schema name to PUBLIC
2025-09-25 15:37:08 INFO: Clearing database change log checksums
2025-09-25 15:37:08 INFO: Successfully acquired change log lock
2025-09-25 15:37:08 INFO: Successfully released change log lock
2025-09-25 15:37:10 INFO: Reading from PUBLIC.DATABASECHANGELOG
2025-09-25 15:37:10 INFO: Reading from PUBLIC.DATABASECHANGELOG
2025-09-25 15:37:10 INFO: Reading from PUBLIC.DATABASECHANGELOG
2025-09-25 15:37:10 INFO: UPDATE SUMMARY
2025-09-25 15:37:10 INFO: Run: 0
2025-09-25 15:37:10 INFO: Previously run: 46
2025-09-25 15:37:10 INFO: Filtered out: 0
2025-09-25 15:37:10 INFO: -------------------------------
2025-09-25 15:37:10 INFO: Total change sets: 46
2025-09-25 15:37:10 INFO: Update summary generated
2025-09-25 15:37:10 INFO: Successfully released change log lock
2025-09-25 15:37:10 INFO: Command execution complete
2025-09-25 15:37:11 INFO: jetty-11.0.19; built: 2023-12-15T20:54:39.802Z; git: f781e475c8fa9e9c8ce18b1eaa03110d510f905f; jvm 17.0.6+10
2025-09-25 15:37:11 INFO: Started o.t.w.@3ddf5484{/,null,AVAILABLE}
2025-09-25 15:37:11 INFO: Session workerName=node0
2025-09-25 15:37:12 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2025-09-25 15:37:12 INFO: Started o.e.j.s.ServletContextHandler@17525e2f{/,null,AVAILABLE}
2025-09-25 15:37:12 INFO: Started ServerConnector@122d7455{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2025-09-25 15:37:12 INFO: Started Server@6f97ea30{STARTING}[11.0.19,sto=0] @5402ms
root@srv1019209:~#
Have you followed the troubleshooting guide?
Revisa si el puerto está abierto en tu vps
yes i followed the troubleshooting guide I deleted and reinstalled Traccar without changing the configurations.
my gps sms respond is
Battery:3.95V,NORMAL; SOC:Link Down;LTE Signal Level:Strong; GPS:Successful positioning; SVS Used in fix:17(20); GPS Signal Level:29,40,27,14,33,21,31,31,28,30,35,25,29,29,25,25,37 ACC:ON; Defense:OFF;
but my traccar interface on my vs doesn't displaye it
Unlike on the traccar demo interface
Please provide every step you followed and details.
Sergio Gauna
the port is opened in my vps
apt update && apt -y install unzip mysql-server
apt update && apt -y install unzip mysql-server
apt update && apt -y install unzip mysql-server
cat > /opt/traccar/conf/traccar.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost/traccar?zeroDateTimeBehavior=round&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>root</entry>
<entry key='database.password'>root</entry>
</properties>
i followed the guide as well no probleme there
on my vps panel i opened the 5023 tcp and udp port
and i send the server set sms on my gps with the port 5023 the respond was server set ok !
That's installation steps. I asked you about the troubleshooting guide specifically.
yes i followed the Server Troubleshooting
that doesn't adjust the probleme
Is there a reason you're refusing to provide details from that troubleshooting?
Como sabes que el puerto de tu vps está abierto? Has realizado análisis de puertos?
Hello,
I installed a GPS device (GT06) on a car for testing. I first configured it on Traccar Demo using port 5023, and it worked correctly: the GPS was sending its position and everything was fine.
Later, I rented a VPS from Hostinger, installed Traccar on it, and configured the GT06 port to 5023 over TCP in the traccar.xml file:
<entry key='web.address'>0.0.0.0</entry> <entry key='gt06.port'>5023</entry>
I then configured the GPS device to connect to my VPS IP. On the VPS Traccar interface, the GPS shows as offline. However, if I switch back to Traccar Demo, the GPS is online and working on port 5023.
I noticed that only TCP is recognized; UDP does not work, even though the services show the port as open.
Could someone help me understand why my GPS is offline on my VPS Traccar server while it works on the demo server?
Thank you!