Hi,
check please network connection between server and mikrotik
- is API enabled on router ? IP open for connection ?
you can ping, and telnet mikrotik:
ping {IP}
telnet {IP} 8728
result of telnet should be like this:
telnet 10.0.1.1 8728
Trying 10.0.1.1...
Connected to 10.0.1.1.
Escape character is '^]'.
With no closing connection (means API active on port 8728)