GeoPeeker<\/a>. Enter the website URL you want to test, and click “Go!”. This will give you the best idea of whether a website works for other visitors or not. If you see the same error again, it is a global issue.<\/p>\nUnfortunately, with globally unavailable websites that have the error 502 Bad Gateway, there is nothing you can do if you aren’t the website owner. The problem is between the web server and the service it is trying to access, so all you can do is wait for them to fix it.<\/p>\n
However, if your computer alone is having trouble accessing the website, and other devices are able to access the website without issue, you can try the following methods<\/p>\n
2. Try accessing the website using a different browser<\/h4>\n
First, try using a different browser, as that will allow you to preserve your cookies, cache, and logins. Download another browser, such as Mozilla Firefox or Google Chrome. You can also try the browser that comes included with your computer, such as Safari or Microsoft Edge. If you can access the website using any other browser, you will likely need to clear your browser data in your main browser and try again. Clearing your browser data and cache is fairly straightforward, but the exact steps depend on the browser you’re using.<\/p>\n
3. Clear your browser’s data and cache<\/h4>\n
This might be worth trying as there may be bad cache data preventing your browser from loading the website properly. You can clear your browser data and cache on various browsers by doing the following:<\/p>\n
Google Chrome:<\/strong><\/p>\n\n- Click on the three vertical dots found at the top right of your browser.<\/li>\n
- Click on More Tools.<\/li>\n
- Click on Clear Browsing Data.<\/li>\n
- Set the time range to “All time”.<\/li>\n
- Check the checkboxes for “Cookies and other site data” and “Cached images and files”.<\/li>\n
- Click on “Clear data”.<\/li>\n<\/ol>\n
Microsoft Edge:<\/strong><\/p>\n\n- Click on the three horizontal dots found at the top right of your browser.<\/li>\n
- Click on Settings.<\/li>\n
- Click on “Privacy, Search, and Services” in the left sidebar.<\/li>\n
- Scroll down and click on “Choose What to Clear”.<\/li>\n
- Set the time range to “All Time”.<\/li>\n
- Check the checkboxes for “Cookies and other site data” and “Cached images and files”.<\/li>\n
- Click on “Clear Now”.<\/li>\n<\/ol>\n
Mozilla Firefox:<\/strong><\/p>\n\n- Click on the three horizontal lines found at the top right of your browser.<\/li>\n
- Click on Settings.<\/li>\n
- Click on Privacy & Security in the left sidebar.<\/li>\n
- Scroll down and click on “Clear Data…”.<\/li>\n
- Ensure both boxes are checked and click on the “Clear” button.<\/li>\n<\/ol>\n
Safari:<\/strong><\/p>\n\n- In the status bar or menu bar of your Mac, click on the “Safari” menu item found at the top left of your screen.<\/li>\n
- Click on Preferences or Settings. Click on the Privacy tab -> Click on “Manage Website Data…” -> Find the website you want to clear the data for and click on “Remove” or simply click on “Remove All”. Click on Done when you are finished.<\/li>\n<\/ol>\n
NOTE: This will sign you out of most websites, requiring you to sign in again.<\/strong> This can also slow down your website experience temporarily, as all remote content has to be downloaded again.<\/p>\nTry accessing the site once again. If you are able to access it now, then great! The cause was likely a caching issue.<\/p>\n
If you’re still seeing the 502 Bad Gateway error, you can try to…<\/p>\n
4. Change your DNS provider<\/h4>\n
DNS is the system that connects IP addresses, the addresses that define the location of a computer or server on the Internet, to domain names, the URL that you type in your web browser. Your computer has to have a DNS server set in order to be able to connect to websites on the Internet. Sometimes, this DNS setting might get stuck or point to an old IP address where the site is no longer located. Changing the DNS server can sometimes help resolve a 502 Bad Gateway error.<\/p>\n
How to change the DNS Server on Windows 11:<\/strong><\/p>\n\n- Open the Settings app.<\/li>\n
- Click on “Network and internet” in the left sidebar.<\/li>\n
- Click on Ethernet or Wi-Fi, depending on what you are using to connect to the Internet.<\/li>\n
- In the “DNS Server Assignment” section, click on the Edit button.<\/li>\n
- In the dropdown, select Manual.<\/li>\n
- Type in a DNS IP address.<\/li>\n<\/ol>\n
Changing the DNS Server on macOS Ventura:<\/strong><\/p>\n\n- Open the System Settings app.<\/li>\n
- Click on Network in the left sidebar.<\/li>\n
- Select the network connection that says “Connected”.<\/li>\n
- Click on “Details…”.<\/li>\n
- Click on DNS in the left sidebar.<\/li>\n
- If there is an IP address present in the section under DNS Servers, select it and click on the minus button to remove it.<\/li>\n
- Click on the plus button and type in an IP address.<\/li>\n<\/ol>\n
DNS IP addresses to try:<\/strong> 1.1.1.1<\/code> or 8.8.8.8<\/code> are the most popular and common DNS servers to use. Try switching to whichever one your computer was not using, or try either one out. If it helps, then likely a DNS entry was not updated yet on your existing provider.<\/p>\n5. Flush your DNS cache<\/h4>\n
If you changed your DNS server and still have trouble, it is possible that your computer has cached DNS entries to help speed up Internet browsing. You can clear this by running one of these commands, depending on your operating system:<\/p>\n
Clear your DNS cache on Windows:<\/p>\n
\n- Go to your start menu and open a command prompt. (cmd)<\/li>\n
- Type this exact phrase:
ipconfig \/flushdns<\/code><\/li>\n- Press [Enter] on your keyboard. That should clear your DNS cache.<\/li>\n<\/ol>\n
Clear your DNS cache on macOS:<\/p>\n
\n- Open Finder, go to Applications > Utilities, and open the Terminal app.<\/li>\n
- Run this exact command:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder<\/code><\/li>\n- Your computer will ask for a password. Enter your login password and press [Enter] on your keyboard. Your DNS cache is now cleared.<\/li>\n<\/ol>\n
Try to load the webpage again now. Your computer will contact the newly configured DNS server for the latest entry. If you are still having trouble, it is possible that the DNS entries set by the website owner are configured incorrectly, in which case the only fix would be to try again later.<\/p>\n
6. Check and disable any browser extensions<\/h4>\n
You may have some extension in your browser that redirects the connection to a server with the error. It’s worth disabling any extensions that could affect your browser connections and trying again.<\/p>\n
7. Restart your device<\/h4>\n
A last resort option is to try and restart your computer. This might seem not to do much. However, a restart does reset your Internet connection and some networking caches.<\/p>\n