Visual Basic with Mikrotik

Anyone know where I can get available code for connection to Mikrotik box with visual basic? I want to implement current VB6 applications we have to talk to Mikrotik box so we can get information and store in our database. Also, like to upload changes to box from database such as disconnecting pppoe users, etc.

I know there are API’s available but I was hoping there is another option, not sure how to use API’s.

http://wiki.mikrotik.com/wiki/API#See_also

@bitwise

http://wiki.mikrotik.com/wiki/API#See_also

There is no VB6 API implementation in MT Wiki, but forum user lucho512 found working sample:
http://forum.mikrotik.com/t/api-in-visual-basic-6-working-fine/46922/1
VB code is a little bit messy but works.

HTH,

somehow it slipped by, added link to VB sample

Thanks. It needs work but this is a good start. Currently it doesn’t want to connect not sure if it’s security of Mikrotik (algorithum) or what? MD5 issue don’t know.

check if API is enabled and you can connect using python api client. If python client cannot connect then there must be a problem with configuration (API not enabled, port is blocked etc.)

Then you can be sure, that client you are developing is actually working and problem is elsewhere. On the other hand, if with python client you can login and everything is working - problem is with the client.

Next step is to sniff traffic to see where are the differences between python client packets and your client. also, from packets you can get challange, and thus, you can feed your client with correct challange and see what is your client sending, so you can easily compare packets and what is inside them.

@bitwise
As I wrote earlier this sample works for me.
I agree with janisk, check your router API config.

HTH,

Yep, didn’t know API had to be enabled on MikrotikOS