UE4 freezing when trying to build

EDIT: The problem has been solved. I honestly am not sure what exactly did it. I repaired the install, I opened up the ports, port forwarded my router, did many things I don’t remember anymore and then after another restart of my laptop at the end of the day, it finally worked.

I just installed UE4 on my laptop and I am immediately having troubles trying to build a scene. No matter how simple the scene, pressing build freezes the program. The Swarm Agent log repeats the same error message until I close UE4.

[ERROR] Channel registration failed. Reason: No such host is known
, Callstack: at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
at System.Runtime.Remoting.Channels.CoreChannel.GetMachineName()
at System.Runtime.Remoting.Channels.CoreChannel.GetMachineIp()
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupMachineName()
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel…ctor(Int32 port)
at Agent.AgentApplication.Main(String[] args).

I’ve searched this issue for a while but just cannot find a clear solution.

CPU: i7-7700HQ 2.80GHz

GPU: GTX 1050 GPU

Memory: 8GB

OS: Windows 10

UE Version: 4.19.2

Additional info:
I have spent a while searching this issue and one of results was that certain ports might be blocked. I installed TCPView and found nothing except Unreal Engine using port 8008. Checking TCPView while UE4 is trying to build causes two process to begin, but both end within a few seconds, then they start again and this loops indefinitely. I created a rule in my firewall to allow this port regardless, but no progress yet.

Update:

This is what I see when I view my ports with TCPView These 2 processes open and close infinitely until I close Unreal Engine. I’ve tried allowing the 8008 port in my firewall, but have had no success, though I may not be doing it right.

By me same :frowning:

It could help to reinstall Windows or so