SAPINST: Server Port 21212 is not free

Symptom

You are opening the SAPINST file but ended up with nothing appear. You notice from the Program Starter log, it says that the The server port 21212 is not free.

SAPINST - Server Port 21212 is not free

Solution

This example is executed on Windows operating system environment. You may follow the same steps but of course the command will be different.

1. Execute netstat command and locate the port 21212.

netstat -o -n -a | findstr 21212
  TCP    127.0.0.1:21212        0.0.0.0:0              LISTENING       8052
  TCP    127.0.0.1:21212        127.0.0.1:52498        ESTABLISHED     8052
  TCP    127.0.0.1:52498        127.0.0.1:21212        ESTABLISHED     6540

2. Kill the PID based on the LISTENING PID, the PID here is 8052.

taskkill /F /PID 8052
SUCCESS: The process with PID 8052 has been terminated.

3. Start the SAPINST again.

You May Also Like

Leave a Reply?