This error can be caused by another application already using the port. The swarm agent uses ports 8008 and 8009 by default, you can see if these are already in use and by what application using the command “netstat -o” or by using the windows Resource Monitor.