ERROR: Binding connection to TCP port 7222 failed:10048 (Specified address is in use).

ERROR: Binding connection to TCP port 7222 failed:10048 (Specified address is in use).

book

Article ID: KB0072514

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service ALL

Description

ERROR: Binding connection to TCP port 7222 failed:10048 (Specified address is in use).
WARNING: Unable to accept connections on tcp://hostname/[::1]:7222 - Error 201 - Initialization failed
ERROR: Binding connection to TCP port 7222 failed:10048 (Specified address is in use).
FATAL: Unable to accept connections on tcp://hostname/XX.XX.XX.XX:7222 - Error 201 - Initialization failed
FATAL: Exception in startup, exiting.

Environment

All Windows operating systems.

Resolution

You will see this error when you are starting the EMS server on the port which is already in use.
To resolve the problem you need to free the port and then start the EMS service.

Example:

netstat -oqa |findstr "7222"
 TCP    0.0.0.0:7222           hostname:0          LISTENING       8472
 
The second last column indicates the state of a TCP connection, and in the last column of output gives you process ID,In the above output "8472"

tasklist | findstr "8472"
tibemsd.exe                   8472 Services                   0     12,976 K


Check the above process name in the task manager and get the location of the process.

Task Manager-->Processes tab--> Right-click on process name--->Properties-->General tab you will get the process location.

Important note: Based on your requirement take further action like kill the existing service and start the new one.

Issue/Introduction

ERROR: Binding connection to TCP port 7222 failed:10048 (Specified address is in use).