Hello world! Have any of you ever encountered this...
# ask-community
j
Hello world! Have any of you ever encountered this when trying to connect an agent to a remote server?
Copy code
Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
k
Hi @Joe, I haven’t but it seems like the remote server isn’t accepting connections. Are the ports open or is there any security that would stop the agent from pinging it?
j
I'm running some network tests, but a coworker was able to connect an agent from his machine yesterday. Both of us are remote, on AWS VPN, and connecting to the same server which is running on an EC2.
Running an actual ping against the server is fine - quick responses, no timeouts.
k
I don’t have any ideas off the top of my head. But let me ask the team if they have any.
j
Thanks, I appreciate it! Google came up with nothing related to Prefect - just some hits on Selenium hitting the same issues. Digging into those now, too.
k
Yeah these permission errors are normally related to your AWS networking specifically. When I see this it’s normally just a matter of opening the relevant ports and allowing IP addresses. Very weird if your coworker is able to connect over the same VPN
j
Right? It's always something. 😃 I'll keep digging; will report back if I have a breakthrough.
k
Chatted with the team. This is a bit hard to provide good feedback on our end cuz it might be a Windows issue too
j
Yeah, definitely could be. Would you happen to have any documentation or guidance on all ports that need to be open?
k
On server side, you only need to accept 4200. For the agent, HTTP out (port 80). Assuming all of the IP’s are allowed.