I can't add a device it's offline

Tomasz5 days ago

Hi. I have installed tracer in the latest version.
Linux ubuntu 24.04
I share the port and the port is visible

Test-NetConnection -ComputerName xxxxxxxxxxxx -Port 5020
TcpTestSucceeded : True

I have configured IP4 and it shows I see IP6

udp6       0      0 :::5145                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5147                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5158                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5170                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5183                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5189                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5190                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5191                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5196                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5198                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5207                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5224                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5227                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5230                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5236                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5252                 :::*                                                                                                                                                                                             893/java
udp6       0      0 :::5254                 :::*                                                                                                                                                                                             893/java

how to change to ip4 so that it is supported because it does not connect to traccar

home page traccar works but does not see devices

Anton Tananaev5 days ago

I don't think it has anything to do with IPv6 or IPv4. Modern systems have combined stack, so even though it might show IPv6, it should actually handle both.

Tomasz5 days ago

I only see udp6 ports and it doesn't want to connect. I thought that was the reason.

Zrzut ekranu 2025-03-26 144433.png

Anton Tananaev5 days ago

That's probably not the reason.

Tomasz5 days ago

on the phone sending failed. What could be the reason?

Tomasz5 days ago

I found the logs

User-Agent: TraccarClient/59 CFNetwork/3826.400.120 Darwin/24.3.0
Accept-Language: pl-PL" - NumberFormatException (... < MeitrackFrameDecoder:37 < BaseFrameDecoder:29 < ... < WrapperInboundHandler:56 < ... < StandardLoggingHandler:62 < ...)
2025-03-26 14:03:08  INFO: [T21925562] disconnected
2025-03-26 14:03:08  WARN: [T21925562] error - For input string: "T /?id=627492×tamp=1742990374&lat=51.210988&lon=18.587085&speed=0&bearing=0&altitude=202.5911567794738&accuracy=16.54329452201937&batt=60.00000381469727 HTTP/1.1
Host: 194.107.18.249:5020
Connection: keep-alive
Accept: */*
User-Agent: TraccarClient/59 CFNetwork/3826.400.120 Darwin/24.3.0
Accept-Language: pl-PL" - NumberFormatException (... < MeitrackFrameDecoder:37 < BaseFrameDecoder:29 < ... < WrapperInboundHandler:50 < ... < OpenChannelHandler:38 < ...)
2025-03-26 14:03:39  INFO: [T09b2529b] connected
2025-03-26 14:03:39  INFO: [T09b2529b: meitrack < 31.41.138.188] POST /?id=627492×tamp=1742990374&lat=51.210988&lon=18.587085&speed=0&bearing=0&altitude=202.5911567794738&accuracy=16.54329452201937&batt=60.00000381469727 HTTP/1.1\r\nHost: 194.107.18.249:5020\r\nConnection: keep-alive\r\nAccept: */*\r\nUser-Agent: TraccarClient/59 CFNetwork/3826.400.120 Darwin/24.3.0\r\nAccept-Language: pl-PL,pl;q=0.9\r\nContent-Length: 0\r\nAccept-Encoding: gzip, deflate\r\n\r\n
2025-03-26 14:03:39  WARN: [T09b2529b] error - For input string: "T /?id=627492×tamp=1742990374&lat=51.210988&lon=18.587085&speed=0&bearing=0&altitude=202.5911567794738&accuracy=16.54329452201937&batt=60.00000381469727 HTTP/1.1
Host: 194.107.18.249:5020
Connection: keep-alive
Accept: */*
User-Agent: TraccarClient/59 CFNetwork/3826.400.120 Darwin/24.3.0
Accept-Language: pl-PL" - NumberFormatException (... < MeitrackFrameDecoder:37 < BaseFrameDecoder:29 < ... < WrapperInboundHandler:56 < ... < StandardLoggingHandler:62 < ...)
2025-03-26 14:03:39  INFO: [T09b2529b] disconnected
2025-03-26 14:03:39  WARN: [T09b2529b] error - For input string: "T /?id=627492×tamp=1742990374&lat=51.210988&lon=18.587085&speed=0&bearing=0&altitude=202.5911567794738&accuracy=16.54329452201937&batt=60.00000381469727 HTTP/1.1
Host: 194.107.18.249:5020
Connection: keep-alive
Accept: */*
User-Agent: TraccarClient/59 CFNetwork/3826.400.120 Darwin/24.3.0
Accept-Language: pl-PL" - NumberFormatException (... < MeitrackFrameDecoder:37 < BaseFrameDecoder:29 < ... < WrapperInboundHandler:50 < ... < OpenChannelHandler:38 < ...)
2025-03-26 14:04:10  INFO: [Td918f69e] connected
2025-03-26 14:04:10  INFO: [Td918f69e: meitrack < 31.41.138.188] POST /?id=627492×tamp=1742990374&lat=51.210988&lon=18.587085&speed=0&bearing=0&altitude=202.5911567794738&accuracy=16.54329452201937&batt=60.00000381469727 HTTP/1.1\r\nHost: 194.107.18.249:5020\r\nConnection: keep-alive\r\nAccept: */*\r\nUser-Agent: TraccarClient/59 CFNetwork/3826.400.120 Darwin/24.3.0\r\nAccept-Language: pl-PL,pl;q=0.9\r\nContent-Length: 0\r\nAccept-Encoding: gzip, deflate\r\n\r\n
2025-03-26 14:04:10  WARN: [Td918f69e] error - For input string: "T /?id=627492×tamp=1742990374&lat=51.210988&lon=18.587085&speed=0&bearing=0&altitude=202.5911567794738&accuracy=16.54329452201937&batt=60.00000381469727 HTTP/1.1
Host: 194.107.18.249:5020
Connection: keep-alive
Accept: */*
User-Agent: TraccarClient/59 CFNetwork/3826.400.120 Darwin/24.3.0
Accept-Language: pl-PL" - NumberFormatException (... < MeitrackFrameDecoder:37 < BaseFrameDecoder:29 < ... < WrapperInboundHandler:56 < ... < StandardLoggingHandler:62 < ...)
2025-03-26 14:04:10  INFO: [Td918f69e] disconnected
2025-03-26 14:04:10  WARN: [Td918f69e] error - For input string: "T /?id=627492×tamp=1742990374&lat=51.210988&lon=18.587085&speed=0&bearing=0&altitude=202.5911567794738&accuracy=16.54329452201937&batt=60.00000381469727 HTTP/1.1
Host: 194.107.18.249:5020
Connection: keep-alive
Accept: */*
User-Agent: TraccarClient/59 CFNetwork/3826.400.120 Darwin/24.3.0
Accept-Language: pl-PL" - NumberFormatException (... < MeitrackFrameDecoder:37 < BaseFrameDecoder:29 < ... < WrapperInboundHandler:50 < ... < OpenChannelHandler:38 < ...)
root@linux2404:/opt/traccar/logs# mc
Anton Tananaev5 days ago

It looks like you have Traccar Client that is sending to the wrong port here. Not sure how it's related to your original problem.

Tomasz5 days ago

I found something like this.What port should be permanently set for iPhone? I think the error is in the table in the database, it does not accept data
The specific error, NumberFormatException, suggests that Traccar is expecting a numeric value but is instead receiving an unexpected string format.

The issue seems to be occurring when the software is trying to decode the data sent by the device. The message For input string: T /?id=627492&timestamp=1742990374&lat=51.210988&lon=18.587085&speed=0&bearing=0&altitude=202.5911567794738&accuracy=16.54329452201937&batt=60.00000381469727 HTTP/1.1 indicates that the data contains unexpected characters (T /?id=...) that Traccar cannot parse properly.

Anton Tananaev5 days ago

Of course it can't parse because you're not using the right port. Please read the documentation. It clearly indicates the correct port.

Tomasz5 days ago

I'm sorry but I've been playing with this app for 3 hours

Tomasz5 days ago

it works, thank you, if you were in Poland I'll buy you a beer

Anton Tananaev5 days ago

I'll take you up on that offer next time I visit Poland ;-)