I am learning network and for some reason I get an error with the bind line and I do not see why, help?
Server_Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Server_Socket.bind(('127.0.0.1', 80))
Server_Socket.listen(10)
I am learning network and for some reason I get an error with the bind line and I do not see why, help?
Server_Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Server_Socket.bind(('127.0.0.1', 80))
Server_Socket.listen(10)
In case someone comes across this error in the future, this exception is typically thrown in the event that another program is already bound to that port. Try changing the port from a popular port i.e(80,443,161..etc) to something above 1024 to be "safe" not to interfere with any other programs.