Connection timeout to VM with Windows 10/11 with opened ports

Alejandro Fernández 0 Reputation points
2025-03-13T00:25:29.1566667+00:00

At my company, we are setting up VMs with Windows 10/11 as agents to remote-compile Unreal builds from our local machines. The communication channel always times out without a descriptive error message.

Our VMs are using a Network Security Group associated with the respective network interfaces for each VM (affecting 0 subnets, 4 network interfaces). This NSG has all ports opened inbound/outbound, proper priority, no firewall or extra network protection included.

But still, Unreal Horde can't maintain a connection with the VM agents for some reason. We set up some VMs in AWS in a couple minutes, opened the respective ports and they worked from the start no issues no additional config. This means we are missing something within our Azure config or there is some internal config we are not aware of.

Unreal horde uses ports: 13340,13342, 5000, 50002 and the range 7000-7010.

Any ideas?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pramidha Yathipathi 1,135 Reputation points Microsoft External Staff Moderator
    2025-03-13T03:40:53.12+00:00

    Hi Alejandro Fernández,

    The Azure setup is blocking the connection, likely due to Azure networking or the Windows Firewall inside the VM, even though the necessary ports are open in the NSG.

    Even if the NSG allows traffic, the firewall inside Windows can still block it. Try temporarily turning it off and see if the connection works:

    netsh advfirewall set allprofiles state off

    If fixed, allow Unreal Horde and required ports in the firewall, and ensure the NSG is applied to both the VM's interface and subnet. Check for other NSGs that may override rules.

    Are you connecting using a public or private IP? If it’s private, your local machine needs access to the Azure VNet, either through a VPN, ExpressRoute, or a correctly configured peering setup.

    – Run this on the VM to check if the service is running and listening on the expected port:

    netstat -an | findstr :<port>

    If nothing shows up, the issue might not be networking—it could be that Unreal Horde isn’t running correctly or isn’t set up to listen on the right interface.

    Since AWS worked without any extra configuration, check if Unreal Horde has any settings that need to be adjusted for Azure. Some software expects a different type of network setup depending on the cloud provider.

    Test you can run: From your local machine, try

    Test-NetConnection <VM-IP> -Port <Port>
    

    If that times out, the issue is almost certainly a networking or firewall problem.

    If you found the information useful, please click "Upvote" on the post to let us know.

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.