Connect to Server from this-party software

schlussi 4 years ago

I am using EDP: https://www.einsatzleitsoftware.de/cms/index.php
It is a command and control software with a map function. It is a built-in Traccar module.
But I cannot connect to Traccar Server. The Server is running on AWS Lightsail. I have no problem connecting Clients.

This is the setup in EDP:

[Traccar-Server]
ServerURI=http://18.xxx.xxx.xxx
Intervall=30
Username=admin
Password=admin
TimeoutServerRead=10
TimeoutServerConnect=5

[Websockets]
Aktiv=1

And this the error:

27.02.22 | 21:16:40 | Debug 1   | Lade Device-Daten von "http://18.158.127.46/api/devices"...
27.02.22 | 21:17:01 | FEHLER    | Fehler beim Verbinden zum EDPServer Socket Error # 10060<CR><LF>Connection timed out.

Is there any special port for this request to open on windows server?

Anton Tananaev 4 years ago

Server is not accessible from what I can tell. Have you tried connecting to it?

schlussi 4 years ago

I have RDP access and iOS and Android Clients also work properly. While I am writing it comes in my mind that maybe I have to open Outgoing Ports on the Server for this request?

Anton Tananaev 4 years ago

Have you tried connecting to the web app from outside network?

schlussi 4 years ago

Hi Anton, yes I can connect from the outside to the web app, that works.

schlussi 4 years ago

Which Port is used for this connection? Is it also 8082?

If I talk to this port I get the following error:

28.02.22 | 09:43:14 | Debug 1   | Lade Device-Daten von "http://18.xxx.xxx.xxx:8082/api/devices"...
28.02.22 | 09:43:14 | Debug 1   | Lade GPS-Daten von "http://18.xxx.xxx.xxx:8082/api/positions?from=2022-02-28T09:43:13.895+01:00"...
28.02.22 | 09:43:14 | Debug 1   | Laden abgeschlossen Response "application/json" -> 401.
28.02.22 | 09:43:14 | Warnung   | Kein gültiger Result erhalten!
28.02.22 | 09:43:14 | Debug     | Verbinde zu Websocket...
28.02.22 | 09:43:14 | Debug     | IOHandler vorhanden...
28.02.22 | 09:43:15 | FEHLER    | Fehler bei Erzeugen der Session: Argument außerhalb des Bereichs
28.02.22 | 09:43:15 | Debug     | ConnectionStatus: Remote host connection complete. / OK (0)
28.02.22 | 09:43:15 | FEHLER    | Fehler beim Verbinden zum EDPServer 151: HTTP protocol error. 503 Service Unavailable.
28.02.22 | 09:43:15 | Warnung   | Schnittstelle wird aufgrund Fehler heruntergefahren...
28.02.22 | 09:43:15 | Debug 2   | [TX] => SCHN|STATUS|10|-2|0
28.02.22 | 09:43:15 | Hinweis   | Servers getrennt
Ludiwg 4 years ago

Did you solve the Problem ?

schlussi 4 years ago

Yes! My rookie mistake was to setup the ports in the firewall in AWS Lightsail, but not in the Windows Server itself!