Firewall & antivirus issues
If security software blocks Minecraft, add an allow-list exception for the Java runtime and launcher rather than turning protection off — and know that school and work networks often block game servers entirely.
Sometimes Minecraft launches fine but can’t reach HarvestSeason, or hangs on “Connecting to the server.” A frequent and easily-missed cause is security software — your firewall or antivirus quietly blocking the connection. The fix is to allow Minecraft safely, never to switch your protection off. Here’s how.
Is security software actually the problem?
Before changing anything, confirm the symptom matches:
- The game launches normally but fails to connect, times out, or shows “Connection refused.”
- Single-player worlds work; only multiplayer fails.
- It started after a Windows update, a new antivirus install, or a firewall reset.
- Other online games or websites also misbehave at the same time.
If instead the game crashes, that’s a different problem — see Crash troubleshooting. And if your connection is just slow or rubber-bandy, see Fixing lag spikes.
The golden rule: allow, don’t disable
It is tempting to turn off your antivirus or firewall “just to test.” Don’t. A disabled firewall leaves your whole machine exposed, and people forget to turn it back on. Every reputable security tool lets you add a specific exception for one program. That’s the safe, correct approach: Minecraft gets through, everything else stays protected.
Allowing Minecraft through Windows Firewall
- Open Start and search for “Allow an app through Windows Firewall.”
- Click Change settings (you may need admin rights).
- Look for Java(TM) Platform SE binary, javaw.exe, or Minecraft Launcher in the list.
- Tick the boxes for both Private and Public networks next to it.
- If it isn’t listed, click Allow another app… → Browse, and point it at the Minecraft launcher executable (and the bundled
javaw.exeif you can find it). Click Add, then tick both network boxes. - Click OK and try connecting again.
Adding an antivirus exception
Third-party antivirus (Norton, McAfee, Bitdefender, Avast, Kaspersky, etc.) each have their own menus, but the steps are similar:
- Open your antivirus dashboard.
- Find Settings → Exceptions / Exclusions / Allow-list (sometimes under “Protection” or “Firewall”).
- Add an exclusion for the Minecraft launcher folder and the Java runtime Minecraft uses (modern Minecraft ships its own Java runtime inside the launcher’s folder — see Updating Java for where that lives).
- Save and try again.
If your antivirus has a separate firewall component, repeat the allow step there too. Some suites ask once, in a pop-up, the first time Minecraft connects — choose Allow if you see that prompt.
Why this happens at all
Java applications open lots of network connections, and antivirus heuristics sometimes treat that pattern as suspicious — a false positive. The official Minecraft launcher and its bundled Java are completely safe; the flag is your antivirus being overly cautious, not a real threat. Allow-listing tells it “this one’s fine.”
A genuine warning: only allow-list the official launcher and the bundled Java. If you downloaded a “free Minecraft” or a cracked launcher from a random site, the warning might be real. HarvestSeason is a premium / online-mode server — you need a legitimate, paid Minecraft Java account to play, so stick to the official launcher.
School, work, and other managed networks
Here’s the frustrating truth: on school, work, library, or other managed Wi-Fi, you often cannot fix this yourself. Network administrators commonly block:
- The ports game servers use,
- Game traffic by category, or
- Everything except web browsing.
These blocks live on the network’s own firewall, not your computer, so allow-listing locally does nothing. Your options:
- Play from a home network instead.
- Use a mobile hotspot from your phone (watch your data).
- Accept that the network simply doesn’t allow it — and don’t try to bypass school or work security policies, which can get you in real trouble.
Quick checklist
- Confirmed the game launches but won’t connect (firewall symptom, not a crash)
- Added Minecraft launcher + Java to Windows Firewall (Private and Public)
- Added an exception in third-party antivirus, including its firewall component
- Did not disable protection entirely
- On a managed network? Tried a home or mobile connection instead
If you’ve allowed Minecraft everywhere and still can’t connect on a network you control, it may not be security software at all — double-check you’re using the right server address from the website, that you’re on Java Edition (see Java vs Bedrock), and ask in Discord where others can compare notes. But nine times out of ten on a blocked connection, a clean allow-list exception does the trick.
FAQ
Should I just turn off my antivirus to connect?
No. Never disable your protection wholesale. Add a specific exception for Minecraft's Java runtime and launcher instead — that keeps you safe while letting the game through.
Why does my antivirus flag Minecraft or Java as suspicious?
Java apps make lots of network connections, which some antivirus tools flag with a false positive. The official Minecraft launcher and bundled Java are safe; allow-list them.
I'm on school or work Wi-Fi and can't connect. Why?
Managed networks frequently block game-server ports and traffic. You usually cannot change this yourself — try a home or mobile network instead.
Does a firewall affect my FPS or just connecting?
Only connecting. A firewall blocks or allows network traffic; it has no effect on frame rate. If your FPS is low, that's a separate issue.