Android 504High

Android 504 Error: Causes and Solutions

The article explains what a 504 error means on an Android smartphone or tablet and offers 4 working solutions—from basic to advanced. You'll learn how to diagnose network issues and restore internet connectivity.

Updated at February 16, 2026
15-30 min
Medium
FixPedia Team
Применимо к:Android 8.0 and aboveAll manufacturers (Samsung, Xiaomi, Huawei, Google Pixel, etc.)

What does error 504 mean

Error 504 (Gateway Timeout) is a standard HTTP status that means a gateway server (such as a proxy server, load balancer, or CDN) did not receive a timely response from an upstream server (usually an application or database server) it was trying to reach. On an Android device, this error is typically displayed in a browser (Chrome, Firefox, etc.) or in other apps that use web requests (social networks, messengers).

You will see a message similar to:

  • 504 Gateway Timeout
  • ERR_HTTP2_PROTOCOL_ERROR
  • Server not responding (in the interface translation)

The error is not a problem with your Android device itself. It is a signal of a failure in the connection chain between your device and the final server you are trying to reach.

Causes

  1. Problems on the server or provider side: The final server (website or API) is overloaded, frozen, or not responding. The intermediate gateway (often from your internet provider or the website owner) waits for a response for too long and cancels the request.
  2. Unstable or slow internet connection: The network has high ping (latency) or packet loss. The request from your device reaches the gateway, but the server's response does not fit within the gateway's allotted time (usually 30-60 seconds).
  3. Blocking by antivirus, firewall, or VPN: Security software or VPN services may redirect or analyze your traffic, creating additional delay, causing the total request time to exceed the limit.
  4. Corrupted browser or app cache: Local app data may contain invalid sessions or cookies, causing infinite redirects or stuck requests.
  5. Incorrect network settings on the device: Incorrectly specified APNs (for mobile internet), a configured system proxy, or DNS issues can disrupt the normal request route.
  6. Temporary failures with your carrier: Especially relevant for mobile networks (4G/5G) under high load or at coverage zone borders.

Solutions

Method 1: Basic Reboot and Network Switch

This is the first and mandatory step, which resolves most temporary glitches.

  1. Restart your Android device. Power it off completely, wait 30 seconds, and turn it back on. This clears RAM and temporary network buffers.
  2. If using Wi-Fi:
    • Reboot your router (unplug it from power for 30 seconds).
    • On your device, "forget" the network (SettingsWi-Fi → tap the network → Forget this network) and reconnect by entering the password.
  3. Try switching to mobile data (4G/5G) if the error occurred on Wi-Fi, and vice versa. This quickly determines whether the problem is with that specific network or with general internet access on the device.

Method 2: Check and Disable Third-Party Software

Temporarily disable programs that affect traffic.

  1. Disable the VPN service if active. Completely close the VPN app.
  2. Temporarily disable antivirus or firewall (if a third-party one is installed, not the system one). Check if the error disappears.
  3. Check Wi-Fi settings: Go to SettingsWi-Fi → tap the gear icon next to the connected network → Advanced settings or Proxy. Ensure the proxy mode is set to None or Off.

Method 3: Clear App Cache and Data

If the error occurs only in one app (e.g., Chrome or a specific client).

  1. Go to SettingsAppsManage apps.
  2. Find the problematic app (e.g., Chrome) and open its page.
  3. Tap Memory (or Storage).
  4. First, tap Clear cache. This is safe and will not delete your personal data (logins, history).
  5. If that didn't help, tap Clear data (or Clear storage). Warning: this will delete all app data (logins, settings, history). For a browser, you will need to log in to sites again.
  6. Restart the app and try again.

Method 4: Reset Device Network Settings

A radical but often effective method that returns all network parameters to factory defaults.

⚠️ Important: This step will delete all saved Wi-Fi networks and passwords, as well as all paired Bluetooth devices. You will need to set them up again.

  1. Open SettingsSystem (or General settings).
  2. Find and select Reset (or Reset & recovery).
  3. Tap Reset Wi-Fi, mobile network, and Bluetooth settings (the name may vary slightly depending on the shell: Network settings reset).
  4. Confirm the action. The device will reboot.
  5. After reboot, set up Wi-Fi or mobile data again.

Method 5: Check and Configure APN (for Mobile Internet)

If the problem occurs only when using mobile data (not on Wi-Fi).

  1. Go to SettingsNetwork & internetMobile network.
  2. Find the Access Point Names (APN) or APN item.
  3. Tap the three dots in the top right corner and select Reset to default. This restores the correct APNs from your carrier (if they are preinstalled in the firmware).
  4. If resetting didn't help or the APN list is empty, contact your carrier's support (MTS, Beeline, MegaFon, Tele2, etc.) and ask them to send APN settings for your tariff plan. Usually this is an SMS or a link for automatic configuration.
  5. Ensure that in the selected APN, the Proxy and Port fields are empty (unless your carrier uses a proxy).

Method 6: Change DNS

Sometimes the problem is caused by your provider's DNS server.

  1. When connected to Wi-Fi: go to SettingsWi-Fi, tap the gear icon for the network.
  2. Find Advanced settingsIP settings (or DNS). Switch from DHCP to Static.
  3. In the DNS 1 field, enter 8.8.8.8 (Google DNS), in DNS 28.8.4.4. Save and reconnect.
  4. For mobile data, changing DNS usually requires root access or apps like DNS Changer. Without them, Method 4 (network settings reset) is simpler.

Prevention

  • Regularly update your system and apps. Updates often contain fixes for network stacks and security.
  • Avoid unreliable VPN services. Use reputable providers that do not cause excessive delays.
  • Monitor your SIM card condition. If it is physically damaged or oxidized, it can cause connection drops. Clean the contacts with alcohol if necessary.
  • For Wi-Fi: keep your router firmware up to date, avoid overloading it with too many devices, and choose a less congested channel (using an app like Wi-Fi Analyzer).
  • Periodically clear your browser cache, especially if you frequently visit different sites.

What to do if nothing helped?

If you have systematically completed all the steps and error 504 appears on a specific website or in a specific app, then the problem is most likely on their servers. In this case:

  1. Try accessing that site/service from another device (e.g., a computer) and from a different network (e.g., mobile internet on a phone). If the error repeats — the problem is with the resource owner.
  2. Wait for the administrators to fix the outage. Usually, such problems are temporary.
  3. If the problem is global (the internet does not work on any site or in any app, with any type of network), and rebooting the router and resetting network settings did not help, then most likely the issue is with your internet provider (for Wi-Fi) or mobile carrier (for mobile data). Contact their technical support.

F.A.Q.

Does a 504 error only appear in one app (e.g., browser)? Is it definitely a network issue?
After resetting network settings, saved Wi-Fi passwords are gone. Is this normal?
Can antivirus software or a VPN cause a 504 error?
Did any of these solutions help? If not, what should I do next?

Hints

Reboot your device and router/modem
Check and switch network type
Clear app and system cache
Reset your device's network settings
Check APN and proxy settings

Did this article help you solve the problem?

FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community