Replit preview "took too long to reply": fixes that work
Replit preview says it "took too long to reply" but the deployed site works? Check DNS for *.replit.dev, your VPN and Expo port 8081, step by step.
The Liite team7 Min. Lesezeit
Short answer
The deployed site works, so your app is probably fine. The preview lives on a different address, and your network may be failing to reach it. Turn off your VPN, then switch your DNS to a public resolver such as 8.8.8.8 and 8.8.4.4. For Expo projects, also free port 8081.
Your Replit app runs and the console looks normal, but the Preview pane shows that the page took too long to reply. The deployed version of the same app loads without trouble.
took too long to reply
Browsers word this timeout differently, so match on the meaning (the request waited and gave up) rather than the exact punctuation.
Why the Replit preview took too long to reply
People on Replit's community forum report that this problem comes from the connection between their computer and the preview address, not from their code. Replit has not published an official diagnosis that we could find, and things may have changed since those reports (two threads, March 2026). Treat the causes below as the most likely ones, not a guarantee.
- *Your ISP's DNS doesn't resolve `.replit.dev`.** The browser can't find the preview server, so the request hangs and then times out. This is the cause people report most often.
- A VPN is interfering. Some VPNs route or filter traffic in ways that stop the preview address from answering.
- Expo only: something else is using port 8081. Expo wants that port. If another process holds it, the preview can fail.
- Unknown or on Replit's side. If none of the above applies, we don't know the cause. It could be a temporary Replit problem.
The deployed site likely works because it is served from a different address than the preview. That is our reading of the symptoms, not something Replit has confirmed.
| Cause | Symptom | Fix |
|---|---|---|
ISP DNS fails on *.replit.dev | Works on a phone hotspot, fails at home | Switch to a public DNS |
| VPN interference | Preview works with the VPN off | Disconnect or exclude Replit |
| Port 8081 busy (Expo) | Only Expo projects fail | Stop the other process or accept 8082 |
| Replit-side issue | Fails on every network | Check Replit status, contact support |
Step-by-step fixes
Work through these in order. Each takes a minute or two.
1. Rule out the VPN
- Disconnect your VPN completely, not just the browser extension.
- Reload the preview.
- If it loads, keep the VPN off while you work. Or check whether your VPN has a split-tunnel or "excluded apps/sites" setting and exclude your browser or
replit.dev.
2. Test a different network
- Connect your computer to your phone's hotspot.
- Reload the preview.
- If it loads there but not at home or the office, the problem is your usual network, most likely its DNS. Go to the next fix.
3. Check whether DNS can find the preview address
- Copy the hostname from the preview's address (the part ending in
replit.dev). - Open a terminal or command prompt and run:
nslookup your-preview-hostname.replit.dev- If it reports that it can't find the name or returns an error, DNS is the problem. If it returns an IP address, DNS is probably fine, so look at the VPN, the port or Replit itself.
4. Switch to a public DNS
Google documents that DHCP normally sets your system to your ISP's DNS servers, so to use Google Public DNS you must change the DNS settings in your operating system or device. The addresses are 8.8.8.8 and 8.8.4.4 for IPv4:
8.8.8.8
8.8.4.4Paths vary by system. Google's page, Get Started with Google Public DNS, has steps for Windows, macOS, Linux, ChromeOS, iOS, Android and routers. On Windows, for example, it goes through Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings, then the connection's properties and its IPv4 settings. On macOS it is Apple menu > System Preferences > Network, then Advanced and the DNS tab. Newer OS versions label things a little differently.
After changing it:
- Fully close and reopen your browser.
- On Windows, you can also run
ipconfig /flushdnsin a command prompt. - Reload the preview.
Write down your old DNS settings
Note the DNS addresses you replace so you can revert. If you change DNS on your router, every device on the network uses it, so test on one computer first.
If you'd rather change it for the whole network, set it in your router's DNS settings and then restart your browser.
5. Open the preview outside the pane
If Replit lets you open the preview in its own browser tab, try it. If it loads in a tab but not in the pane, the embedded view is the issue. If the tab shows the same timeout, you are back to network or DNS.
6. Expo: free port 8081
- Find the process using port 8081 (for example another Expo or Metro dev server) and stop it.
- Restart your Expo run so it can take 8081.
- The other approach people mention is accepting port 8082 when Expo offers it. Which one works can depend on your setup.
7. Check Replit's side
If nothing above helps, check Replit's status page and help center for an outage or a known preview issue before changing more settings.
Checklist before you try again
- VPN fully disconnected, and the preview reloaded
- Preview tested on a phone hotspot
nslookuprun on the preview hostname- DNS set to a public resolver, browser restarted, DNS cache flushed
- For Expo: nothing else running on port 8081
- Replit status page checked
What won't help
- Redeploying. The deployed site already works, so the app is not the problem.
- Rewriting code. A timeout that only hits the preview address points to the network path.
- Restarting the app again and again. If your DNS can't resolve the address, the preview will keep timing out.
- Waiting without testing. A DNS fault at your ISP can last a long time, and a hotspot test tells you in minutes.
If nothing works
Contact Replit support through its help center or in-app support. Include the exact message, the time it happened, the project's preview hostname, your operating system and browser, and what you already tried (VPN off, hotspot test, nslookup result, DNS change). Here is a message you can copy:
Hi Replit support,
The Preview pane for my project shows that the page "took too long to reply". The deployed version of the same app loads fine.
Preview hostname: <your-preview-hostname>.replit.dev
Time of the error: <date, time and time zone>
OS and browser: <for example Windows 11, Chrome>
Project type: <for example Node, Expo>
What I tried:
- VPN off: <result>
- Phone hotspot: <result>
- nslookup on the preview hostname: <result>
- Switched DNS to 8.8.8.8 / 8.8.4.4: <result>
Can you check whether there is a known issue with the preview for my project?Common questions
Why does the deployed site work when the preview doesn't?
Based on what people report, they are reached through different addresses, so a DNS or VPN problem can block one and not the other. Replit hasn't confirmed this in anything we found.
Is it safe to use Google DNS?
It is a common setting. Google says that if you try Google Public DNS, your client programs will perform all DNS lookups using it, so Google's resolver handles your lookups instead of your ISP's. Other public DNS services work the same way if you prefer one.
I changed DNS and it still fails. What next?
Restart the browser, flush the DNS cache and repeat the hotspot test. If the preview fails on every network with the VPN off, check Replit's status page, because the issue may be on their side.
Does this affect only Expo projects?
No. The DNS and VPN causes apply to any project whose preview lives on a *.replit.dev address. Only the port 8081 fix is specific to Expo.