Killing Appium server rather node

Is there a way to kill an appium server with reference to its port ?

Like if i start more than one node at a time can one specific node of the many nodes be killed using the port information that its working on?

You can kill it by Process id
lsof -i tcp:4723
lsof -t -i tcp:4723 ##if you want only PID

kill -9 $(lsof -t -i tcp:4723) ##to kill a process listening to tcpport 4723, change to you Appium server port.