Hi,
>[Errno 10061] No connection could be made because the target machine actively refused it.
The error means that your connection attempt to the specified server did not succeed. Typical causes could be:
1. Wrong server address/port. Are you connected to the right server using the right port number?
2. The `mongod` or `mongos` process was not running in the destination server.
3. Firewall protecting the target server was not configured to let connection through on the specified port.
The actual cause of the error depends on your environment and your network setup, and the error was not caused by MongoDB. I would encourage you to check the three points above and see if any of them is not correctly setup.
Also, in the future please create a new thread with a detailed description of your issue. This is because even though the error message may look similar at a glance, the actual cause could be entirely different.
Best regards,
Kevin