0

how to free the current port

I need to free the current using port for example, if am using 2345 port instead of changing that port number, is it possible to remove the usage orelse to free that particular port...??

Advanced commands Iptables Add a comment
brayden
asked Apr 08 2017

Answer

0

Its possible. You can use fuser command to do so.

For example, To disconnect the port 2345 if used in any other process,

# fuser -n tcp 2345

Once its executed, that port will be free now.

If that port is used in any specific service, then its possible to do so with semanage command.

Add a comment
jagannatharumugam
asked Apr 09 2017
edited Oct 05 2018
Post your Answer