Kill Sctp Process

Tue May 3, 2022

1 minutes

Last updated: 2022-05-03

How to kill a process that is running on a particular port with SCTP

Usually, the netstat command is used to find the process ID related to a SCTP port, then kill the process to free the corresponding occupied port.

But sometimes this method, it can’t provide the process identifier.

In this case, you may use lsof command to obtain the process PID corresponding to the SCTP port.

lsof | grep [sctp port here]

The outcome should be something as follows:

java 18176 user 339u sock 63452472 0t0 SCTP ENDPT: ffff88000f0a1b00 0.0.0.0[sctp port here]

java 18176 886 user 339u sock 63452472 0t0 SCTP ENDPT: ffff88000f0a1b00 0.0.0.0[sctp port here]

java 18176 1583 user 339u sock 63452472 0t0 SCTP ENDPT: ffff88000f0a1b00 0.0.0.0[sctp port here]

Kill the process with command syntax kill -9 [PID] :

kill -9 18176