Connecting to API

hi, first at all, im a newbie. So please forgive me :wink:.

i try to connect to the routerOS (v. 4.11) api via java (from port 1000 to port 8728).
(This thread helped me http://forum.mikrotik.com/t/api-login-and-md5/18926/2)

Everytime when I start my program and in fact of that connecting to API,
my routerOS start to reboot (it seems like someone dont let me connect to the api).

That errors are shown after im connecting via telnet to my router:

system,error,critical router was rebooted without proper shutdown by watchdog ti
mer
system,error,critical login failure for user apiuser from x.x.x.x via api
system,error,critical router was rebooted without proper shutdown by watchdog ti
mer


Well if i try to connect via telnet to the api port (telnet 8728):

It says

Trying 192.129.37.17…
Connected to 192.129.37.17.
Escape character is ‘^]’.

If I type anything like “/login” nothing happen. It doesn’t responds.

I hope you can help me. It would be great.

goodnightS

If you read the rest of that post, you will find a few things that prevent telnet from working. The API port requires a terminating zero character sent to the router following any commands. And even then, you would need to do a manual MD5 encryption to be able to login.

Thank you!

It worked. I got it via Java. I entered a wrong password, which was the reason for my connecting problems.

Best regards,
goodnight :slight_smile: