To solve this issue and clear the error, you have to bind the process to an unused port using one of the solutions in this guide.
How do I fix the python socket error 48: Address already in use?
1. Specify an unused port number for the process
Add the port number after the above command, so that it becomes: NOTE that you should change the (Port Number) in the command to the actual port number.
2. Free up the port
NOTE that you should change the (Port Number) in the command to the actual port number. After entering the last command above, the process will be created on the free port. This method has proven to repair the python socket error 48.
3. Restart Raspberry Pi
Raspberry Pi cannot kill processes automatically, and so, the processes running on the ports must be ended manually. This solution is basically the same principle as the above method. If you get the python socket error 48: Address already in use on Raspberry Pi, restarting it can fix the error. As mentioned at the beginning of this troubleshooting guide, the process may already be bound to port 800 (the default port) if you ran it before. You can easily clear the python socket error 48: Address already in use by specifying an unused port or freeing up the port that the process is bound to. If you get the error on Raspberry Pi, simply restart it to repair. By following any of the above-written methods you should be able to fix the Python Socket Error 48. However, we would appreciate it if you let us know which method worked best for you by leaving us a message in the comments section below.
SPONSORED
Name *
Email *
Commenting as . Not you?
Save information for future comments
Comment
Δ