A status code 504 (Gateway Timeout) in Minecraft usually means the server or the client is waiting too long for a response from another server (often Mojang’s authentication servers, a proxy, or a realm service).
How to Fix Status Code 504 in Minecraft?
- Check the Server’s and Network Status
- Try restarting your Minecraft server to see if that helps
- Check Mojang’s server status to see if they’re having problems: https://downdetector.com/status/minecraft/
- Restart your internet connection or try using a VPN, Mobile Data, or a different internet connection
- Flush your DNS cache
- Windows: Open Command Prompt and run
ipconfig /flushdns - MacOS: Open Command Prompt and run
sudo killall -HUP mDNSResponder
- Windows: Open Command Prompt and run
- Try Again Later
- Some 504 errors are temporary due to high server load or maintenance. Waiting for a few minutes and trying again can resolve the issue.
Step | Description |
Restart Server/Internet | Resolves temporary network or server glitches |
Check Mojang Server Status | Ensures the problem isn’t on Mojang’s end |
Check proxy/DNS settings | Fixes misconfigurations that may block or delay connections |
Wait and retry | Sometimes errors are temporary and will resolve on their own |
If none of these steps resolve the 504 error, the issue may be on Mojang’s end or with the host that you’re using.