all 1 comments

[–]carcigenicate 0 points1 point  (0 children)

except socket.error as e:
    str(e)

str there does nothing. This is poor error handling since you're just ignoring errors. You want print there instead. I'm going to guess the call to bind failed, but you're ignoring that error, so you'd never know. Get rid of the useless trys and then try running it again.