"Adress already in use"
JustinPhillip (20)

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

Why is this?

edit: removed repl from post

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

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 (20)

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