socket connection attempt being rejected

Hello,

I’m rather new to mikrotik, but I was able to connect and successfully send commands via the api using the python implementation from the api docs. However, after that first attempt, I always get a socket connection error in the beginning - ‘socket.error: [Errno 10061]’. Any ideas as to why the machine is refusing my connection attempts now? I’m using the default ip from the docs: 10.10.10.1, and the api service port: 8728. Are there other settings I should be checking? Any ideas on how to troubleshoot this?