Hello!,
I’ve got the same problem reading data from RouterOs. I use port 8291 because I can not connect sucessfully with port 8728, but application is locked on the function Read().
is it obligatory to use the port 8728?.
Thanks a lot.
Hello!,
I’ve got the same problem reading data from RouterOs. I use port 8291 because I can not connect sucessfully with port 8728, but application is locked on the function Read().
is it obligatory to use the port 8728?.
Thanks a lot.
Use whatever is configured as an API port under “/ip services”, make sure that service is enabled in that menu, make sure you’re not dropping that traffic in the firewall.
exactly, you have to enable API service under “/ip services” after that port mentioned in manual can be used. also, see that location weather you have changed default RouterOS API port to something else and use accordingly. Now you are connecting to winbox, that uses completely different protocol to communicate. Therefore, your read from socket is waiting forever.
Of course. Thank you very much.
I did not see the port specification. ![]()