Check if the server is active. If it is active and you cannot enter, check your internet connection and whether your java version is suitable. If there is any update, situation, please let me know.
1️⃣ Check your internet – Restart your router or try a different network.
2️⃣ Restart Minecraft – Close and reopen the game completely.
3️⃣ Check server status – Make sure the server you're trying to join is online.
4️⃣ Update your game – If you're using an outdated version, update it.
5️⃣ Disable firewall/VPN – Sometimes, they block the connection.
6️⃣ Flush DNS – Open Command Prompt and type: