Community discussions

MikroTik App
 
JCesar
just joined
Topic Author
Posts: 13
Joined: Thu Oct 14, 2010 10:57 am

Using Api througth mac protocol [Request guideliness]

Fri Oct 18, 2013 9:45 pm

Some one can give a clue about how connect with mikrotik API througth UDP Mac protocol, im using C#.

Thanks
 
samsung172
Forum Guru
Forum Guru
Posts: 1186
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: Using Api througth mac protocol [Request guideliness]

Fri Oct 18, 2013 11:30 pm

I don't think this is possible?

By default api use the following ports and protocol;

8728/tcp API
8729/tcp API-SSL
 
JCesar
just joined
Topic Author
Posts: 13
Joined: Thu Oct 14, 2010 10:57 am

Re: Using Api througth mac protocol [Request guideliness]

Sat Oct 19, 2013 6:35 am

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
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2411
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Using Api througth mac protocol [Request guideliness]

Sat Oct 19, 2013 12:57 pm

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.
PEAR2_Net_RouterOS(1.0.0b6) - My API client in PHP
(Rate my posts? If you want... no pressure...)
 
JCesar
just joined
Topic Author
Posts: 13
Joined: Thu Oct 14, 2010 10:57 am

Re: Using Api througth mac protocol [Request guideliness]

Sun Oct 20, 2013 2:47 am

 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2411
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Using Api througth mac protocol [Request guideliness]

Sun Oct 20, 2013 2:56 am

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.
PEAR2_Net_RouterOS(1.0.0b6) - My API client in PHP
(Rate my posts? If you want... no pressure...)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Using Api througth mac protocol [Request guideliness]

Tue Oct 29, 2013 11:01 am

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.

Who is online

Users browsing this forum: No registered users and 27 guests