netstat -tulnap shows me what ports are in use. How to free up a port in Linux?
netstat -tulnap
Kill the process that is listening to the port in question. I believe netstat shows you process ids.