address already in use
# To see ports in use
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
address already in use
# To see ports in use
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
EADDRINUSE: address already in use
sudo lsof -i :<PORT>
kill -9 <PID>
EADDRINUSE: address already in use :::5000
sudo lsof -i :3000
Error: listen EADDRINUSE: address already in use
Find server pid:
lsof -i tcp:5000 (the 5000 is the port number)
kill the server:
kill -9 111119 (the 111119 is the pid)
address already in use
comSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us