raspberry pi 4 connection error 111
Hi
Been scratching my head long enough. Can anyone offer guidance on the following error - Thank you
pi@raspberrypi:~/microserver $ sudo ./wsems
[FORCE] 2020-12-22 14:52:28,215 ./wsems: Initializing EMS ....
[FORCE] 2020-12-22 14:52:28,215 main: Using config file /home/pi/microserver/etc/config.json
[INFO ] 2020-12-22 14:52:28,215 ./wsems: Creating the WsEms proxy.
[INFO ] 2020-12-22 14:52:28,215 ./wsems: Starting HTTP Server.
[WARN ] 2020-12-22 14:52:28,215 Main: Encryption is disabled on HTTP Server.
[WARN ] 2020-12-22 14:52:28,215 Main: TLS Hostname Validation Is Disabled
[WARN ] 2020-12-22 14:52:28,215 Main: Authentication is disabled on the HTTP Server.
[INFO ] 2020-12-22 14:52:28,216 ./wsems: Initializing the ThingWorx REST interface.
[FORCE] 2020-12-22 14:52:28,216 httpServer: starting http server port=8080
[INFO ] 2020-12-22 14:52:28,216 wsEmsProxy::initialize: FIPS is disabled.
[INFO ] 2020-12-22 14:52:28,216 wsEmsProxy::initialize: Encryption is enabled on Web Socket connection.
[ERROR] 2020-12-22 14:52:28,216 httpserver: Server socket error: Address already in use [127.0.0.1:8080]
[ERROR] 2020-12-22 14:52:28,216 httpServer: unable to bind http server to port=8080, trying next port.
[ERROR] 2020-12-22 14:52:28,216 httpserver: Server socket error: Address already in use [127.0.0.1:8081]
[ERROR] 2020-12-22 14:52:28,216 httpServer: unable to bind http server to port=8081, trying next port.
[WARN ] 2020-12-22 14:52:28,217 SDK: SDK Version: 2.2.11
[WARN ] 2020-12-22 14:52:28,217 SDK: TLS Library: OpenSSL
[WARN ] 2020-12-22 14:52:28,217 SDK: TLS Library Version: 1.1.1c
[INFO ] 2020-12-22 14:52:28,225 WsProxy::initialize: EMS Version 5.4.9.1154
[INFO ] 2020-12-22 14:52:28,225 WsProxy::initialize: twApi singleton initialized
[WARN ] 2020-12-22 14:52:28,225 WsProxy::initialize: Certificate validation is disabled.
[INFO ] 2020-12-22 14:52:28,226 wsEmsProxy::initialize: Initialization complete!
localhost:8443-->[INFO ] 2020-12-22 14:52:28,227 ./wsems: Starting the connection.
[ERROR] 2020-12-22 14:52:36,987 SDK: twTlsClient_ConnectSession: Error initializing socket connection. Err = 111
[ERROR] 2020-12-22 14:52:36,987 SDK: twWs_Connect: Error restarting socket. Error 111
[ERROR] 2020-12-22 14:52:41,990 SDK: twTlsClient_ConnectSession: Error initializing socket connection. Err = 111
[ERROR] 2020-12-22 14:52:41,990 SDK: twWs_Connect: Error restarting socket. Error 111
config.json
{
"ws_servers": [{
"host": "localhost",
"port": 8443
}],
"appkey": "7e5768b6-f6c9-4259-99c9-c8e1a2e73d39",
"http_server": {
"host": "127.0.0.1",
"port": 8080,
"use_default_certificate": true,
"ssl": false,
"authenticate": false
},
"logger": {
"level": "INFO"
},
"certificates": {
"validate": false,
"disable_hostname_validation": true
}
}

