tcpServer.bind((TCP_IP, TCP_PORT)) OSError: [Errno 98] Address already in use code example
Example 1: [Errno 98] Address already in use
kill -9 $(ps -A | grep python | awk '{print $1}')
Example 2: uvicorn ERROR: [Errno 98] Address already in use
#find the process using the port
lsof -i :8000
#and kill it
kill -9 process_id