kill -9 $(lsof -i :<port> | awk '{l=$2} END {print l}')

If you get an error about missing arguments, it means that there was nothing running on that port.