Article - CS352971
"Server socket error: Couldn't bind address" is seen in the ThingWorx Edge MicroServer (EMS) logs
Modified: 17-Sep-2021
Applies To
- ThingWorx Edge MicroServer 5.4 to 5.4.9
- ThingWorx Platform 8.5 to 9.5
Description
- Cannot get the Edge MicroServer (EMS) HTTP Server to start and bind successfully
- EMS connects to ThingWorx Platform without issue but the HTTP Server will not start
- LuaScriptResource (LSR) is unable to bind to the EdgeMicroServer (EMS)
- LSR cannot connect to the EMS
- While trying to ping a new device connected to the LSR, there is no response and it eventually times out
- LSR does not seem to be able to connect to the EMS
- Cannot bind the EMS HTTP Server on port 8000 but other ports work as expected
- EMS shows the following in the <Edge Microsever>\logs\wsems_log.log file:
- [ERROR] <Date Time> httpserver: Server socket error: Couldn't bind address [<EMS Host>:<EMS HTTP Server Port>]
- LSR shows the following in the <Edge Microsever>\logs\luaScriptResource_log.log file
- [DEBUG] <Date Time> SDK: twTlsClient_ConnectSession: Connecting to server
[ERROR] <Date Time> SDK: TW_NEW_SSL_CLIENT: SSL handshake error. Error: error:00000000:lib(0):func(0):reason(0).
[ERROR] <Date Time> HttpClient::initialize: Exception while opening connection request to <EMS Host>. Error: Error initializing socket [<EMS Host>:<EMS HTTP Server Port>]
- [DEBUG] <Date Time> SDK: twTlsClient_ConnectSession: Connecting to server
This is a printer-friendly version of Article 352971 and may be out of date. For the latest version click CS352971