I am having issues with getting swarm to work

This is the error message I get and I am confused about what is going on. I disabled my firewall and antivirus when I did this. I get this error message when I ping the coordinator in the swarm agent.

11:48:18 PM: [Ping] Communication with the coordinator failed, job distribution will be disabled until the connection is established
11:48:18 PM: Exception details: System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it (My IP Address)
Server stack trace: 
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
   at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
   at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
   at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SwarmCoordinatorInterface.ISwarmCoordinator.Ping(AgentInfo UpdatedInfo)
   at Agent.Agent.PingCoordinator(Boolean ForcePing)
11:48:18 PM: [Network]     Coordinator has failed to respond
11:48:18 PM: [Network] Coordinator ping complete

Same problem here, EnableStandAloneMode = True (SwarmAgent settings) helped me to have only 1 error.

09:25:39: Starting up SwarmAgent ...
09:25:39:  ... registering SwarmAgent with remoting service
09:25:39:  ... registering SwarmAgent network channels
09:25:39:  ... initializing SwarmAgent
09:25:39:  ......... certificate check has failed
09:25:39:  ...... initializing cache
09:25:39:  ......... using cache folder 'G:\SwarmCache'
09:25:39:  ......... recreating SwarmAgent cache staging area
09:25:39:  ...... initializing connection to SwarmCoordinator
09:25:39:  ......... using SwarmCoordinator on RENDER-01
09:25:39:  ......... SwarmCoordinator successfully initialized
09:25:39:  ...... initializing local performance monitoring subsystem
09:25:40:  ... initialization successful, SwarmAgent now running