Server socket error: Couldn't bind address [*:8000]


#1

Hey guys – I’m encountering an error “[ERROR] 2018-04-03 10:39:01,365 httpserver: Server socket error: Couldn’t bind address [*:8000]” on M3:17. Connecting to the EMS. Appreciate your help on this.


#2

Could you please try changing the port number to 443?

Let us know how it goes!


#3

Hi, I’m getting the same issue in the same stage. Pasting my command prompt and code:

{
“ws_servers”: [{
“host”: “academic-thingworxconnectivity.portal.ptc.io”,
“port”: 443
}],
“appKey”: “25fd9391-f125-4061-ac42-8c5dc87c03c2”,
“certificates”: {
“validate”: false,
“allow_self_signed”:false,
“cert_chain”: [“certificate.cer”]
},
“logger”: {
“level”:“INFO”,
“publish_directory”:“logs”,
“publish_level”:“INFO”,
“max_file_storage”:2000000,
“auto_flush”:true,
“flush_chunk_size”: 16384,
“buffer_size” : 4096
}
}


#4

Realized it just bound to 8001 instead and needed to adjust for that later…


#5

I am getting this same error. It still seems to connect though but I cannot use postman or anything else to complete the tasks.

C:\EMS\microserver>wsems
[INFO ] 2018-07-17 12:27:28,614 wsems: Using config file: C:\EMS\microserver\etc\config.json
[FORCE] 2018-07-17 12:27:28,614 wsems: Starting up …
[FORCE] 2018-07-17 12:27:28,619 wsems: Initializing EMS …
[FORCE] 2018-07-17 12:27:28,619 main: Using config file C:\EMS\microserver\etc\config.json
[FORCE] 2018-07-17 12:27:28,620 httpServer: starting http server port=8000
[ERROR] 2018-07-17 12:27:28,629 httpserver: Server socket error: Couldn’t bind address [*:8000]

academic-thingworxconnectivity.portal.ptc.io:443–>

My config.json is below:
{
“ws_servers”: [{
“host”: “academic-thingworxconnectivity.portal.ptc.io”,
“port”: 443
}],
“appKey”: “43d93e1c-3fd6-4789-a9d9-4a29519ac48e”,
“certificates”: {
“validate”: false,
“allow_self_signed”: false,
“cert_chain”: [“certificate.cer”]
}
}


#6

Hi

I face the exact same issue.
Any idea?

Thanks


#7

Not sure if this helps, but I was originally trying this on my corporate laptop (without a VM or anything), then decided to try on my personal laptop and it all worked fine the first time. So using my corp laptop as client PC and my personal as the EMS agent