Page 1 of 1

Using Api througth mac protocol [Request guideliness]

Posted: Fri Oct 18, 2013 9:45 pm
by JCesar
Some one can give a clue about how connect with mikrotik API througth UDP Mac protocol, im using C#.

Thanks

Re: Using Api througth mac protocol [Request guideliness]

Posted: Fri Oct 18, 2013 11:30 pm
by samsung172
I don't think this is possible?

By default api use the following ports and protocol;

8728/tcp API
8729/tcp API-SSL

Re: Using Api througth mac protocol [Request guideliness]

Posted: Sat Oct 19, 2013 6:35 am
by JCesar
I don't think this is possible?

By default api use the following ports and protocol;

8728/tcp API
8729/tcp API-SSL

Ok, i need upload some files using mac protocol like winbox with mac adrees connect. Maybe Mac telnet? You know some code examples for c# ?

Thanks

Re: Using Api througth mac protocol [Request guideliness]

Posted: Sat Oct 19, 2013 12:57 pm
by boen_robot
The only protocol supported by RouterOS which can run even with only a MAC address and no IP is Winbox (the variant on 20561/udp that is), and this protocol is not an openly defined one.

You could use System.Net.Sockets.UdpClient() to interact with it, but how exactly should messages be formatted, only the MikroTik staff can possibly tell for sure. If you hack around, you're doing just that - hacking around, trying to reverse engineer the protocol.

Re: Using Api througth mac protocol [Request guideliness]

Posted: Sun Oct 20, 2013 2:47 am
by JCesar

Re: Using Api througth mac protocol [Request guideliness]

Posted: Sun Oct 20, 2013 2:56 am
by boen_robot
Interesting... so Winbox over MAC is really a MAC telnet with Winbox applying a GUI over it.

Well... there's no equivalent of this library in C# (that I'm aware of), but the UdpClient class linked above is still definitely the one you can use to potentially write your own equivalent.

Re: Using Api througth mac protocol [Request guideliness]

Posted: Tue Oct 29, 2013 11:01 am
by janisk
Interesting... so Winbox over MAC is really a MAC telnet with Winbox applying a GUI over it.
no, it is not. There is a separate service running for mac-winbox.

And debian has packages in its repositories that have mactelnet.