socket.error: [Errno 98] Address already in use code example Example: [Errno 98] Address already in use kill -9 $(ps -A | grep python | awk '{print $1}')