"Adress already in use"
JustinPhillip (1)

Sometimes when I run my code, I get an error saying that "Failed to listen on 0.0.0.0:8000 (reason: Adress is already in use)"

Why is this?

edit: removed repl from post

You are viewing a single comment. View All
Vandesm14 (744)

Either stop the server and wait a bit or fork the repl. This is a problem with repl.it where two or more instances of your program are running at the same time, clogging up the ports and preventing your main instance from running.

Please mark this as answered if I helped your problem 👍

JustinPhillip (1)

@Vandesm14 That makes sense. I have two laptops and work on this project on both of them. Thanks!