KreshOriginally what I though the problem was:
When I queue to play casual it mostly works okay until it tries to connect me to an already started game. After a couple of seconds of trying to connect I get the message that "Connection failed after 4 retries" and a window if I want to abandon the game or try to connect again. If I try again, the same thing happens.
That's why I decided to use the command "tf_matchmaking_join_in_progress 0", but it resets after every game to 1 and even then it barely even works because TF2 still tries to put me in ongoing games. I can't play casual with friends because they get put in the games and I can't and it's really frustrating.
But then I talked with someone who has the same problem and he says it actually happens when the game tries to put us in Stockholm servers and I kinda agree. It makes sense because the "tf_matchmaking_join_in_progress 0" command doesn't work. We are both from East Europe and I don't know if this might be an issue. Could specific IPs actually be banned in these servers?
I posted this on reddit and Steam Forums and I barely got any responses and this issue still persists.
I would appreciate some help.
Try typing "retry" into console. It usually lets you connect after that.