Some of us face this problem a lot, but the solution is simple, just follow the following steps
1 close your game
2 Restart your router
3 try to connect again
You will face this problem a lot, by the way, just keep doing these steps every time you face this problem