State of Decay 2 Code 6 Connection to Host Error - How to Fix

Code 6 is a connection error in State of Decay 2 that players have been encountering. It blocks you from playing the State of Decay 2 multiplayer co-op mode when you try to join a host. Luckily, the solution for the problem (of workaround, if you want) isn’t too complicated. So, here’s how to fix State of Decay 2 Code 6 Error.

State of Decay 2 Code 6 Connection to Host Error - How to Fix
State of Decay 2 Code 6 Connection to Host Error – How to Fix

How to Fix Code 6 Error in State of Decay 2?

To fix the State of Decay Code 6 error, you simply have to turn on Windows Firewall. This being a Microsoft game, for some reason, it requires Windows Firewall to be on in order to connect to the host. Now, this problem might persist even after you turn Windows Firewall, though. If that happens, keep the firewall on, and reset your rig. After that, the Code 6 error should be over and done with. Of course, make sure that your internet connection is running as it should, and that all the Windows services that you need for multiplayer are set to default.

▼Article Continues Below▼

In order to turn on Windows Firewall, right-click the Start button and click on Command Prompt (Admin). Then, run this command: netsh advfirewall show currentprofile. The default version is Firewall Policy BlockInbound,AllowOutbound. If it says Allowinbound, that’s your problem. Run the following command in Command Prompt (Admin): netsh advfirewall set currentprofile firewallpolicy blockinbound,allowoutbound, and that should fix the problem.

If the problem still persists with the Windows Firewall is on and your internet is running smoothly, some of your security programs might be causing the problem. Specifically, according to Xbox Security, it could be either Bit Defender Internet Security, AVG Internet Security, or Panda Internet Security 2015 or 2016. If you use any of these programs, make sure that they’re all updated to the latest versions. After all this is done, you should be rid of the Code 6 error in State of Decay 2. If you need further help with the game, you can check out our State of Decay 2 Doomsday Pack and State of Decay 2 How to Play Co-Op Multiplayer articles.

UPDATE: The Code 6 problem is still plaguing State of Decay 2. Some people have manage to fix it somehow, but for many, it remains a problem. Right now, it seems that no amount of fiddling with the Command Prompt will help for some. This is due to the fact that the Xbox Live Status of State of Decay to has been set to Limited. That will hit you regardless if you’re playing on PC or on the Xbox. Hopefully, the developers will get on this soon, and the game will function as intended.

Author JoeTheBard profile picture
A language teacher and video game enthusiast turned rogue, Joe is on a quest to become the ultimate gaming journalist. This is somewhat hampered by his belief that the golden age of gaming ended with the PlayStation One, but he doesn't let that stop him. His favorite games include Soul Reaver and Undertale. Other interests are D'n'D, dad rock, complaining about movies, and being the self-appointed office funny man, which nobody else agrees with.

Featured Videos



  1. B
    Brandon noghlabadi


    1. S

      Activate UPnP on your Rooter it Works

  2. L

    Good for those on pc. Doesnt really help us on xbox

    1. D

      Yeah…if only it would work on PC as intended or on Xbox for that matter…it’s pretty much sh*t connecting to friends…

  3. D

    This fix doesn’t work.

  4. D

    This doesn’t work for my pc. I even triple checked my firewall status

  5. J

    Issue still persists. Please update.

    1. S
      State of decay

      Did anyone find a solution for this problem?

      1. J

        The fix mentioned here did not work for me however this did.
        Check the iphlpsvc registry path:

        Right-click the Start icon, and then select Command Prompt (Admin).
        Run the following command from the Admin command prompt:
        reg query HKLM\System\CurrentControlSet\Services\iphlpsvc\Teredo

        If the output includes the following line, Teredo has been disabled:

        Type REG_DWORD 0x4

        You can re-enable Teredo by running the following command from the Admin command prompt:
        netsh interface Teredo set state type=default
        This fix is taken off this link here:

        1. M

          After Hours of trying different things. I uninstalled Panda Gold 2016, I took my router out of the occasion and hardlined directly to the modem (to my wife’s frustration) this finally worked, no problem.

  6. D

    Shame they didnt just release this on steam to drop the headache with windows 10 xbox app.. absolute rubbish

    1. T

      Couldn’t agree more. Especially after Sea of Thieves start (which was also a complete pile-up of a disaster)

  7. D

    This worked well for me. We have three PCs in the house and of course the one with the firewall disabled was the player trying to host. 🙂

  8. S

    Aktivate UPnP on your Rooter an have fun 🙂

  9. B

    There is a solution for this on Xbox you need to open up a bunch of ports in your routers advanced settings for both UDP and TCP, disable your IpV6 firewall and probably reverse a dedicated IP Address for your Xbox, the last night not be necessary but I did it anyway and fixed the problem.

  10. J

    No one give usefull information like always

Leave a Reply

Your email address will not be published.