Page 1 of 1

How winbox search for Mikrotik

Posted: Tue Jul 28, 2009 10:41 am
by rueny01
Hi,

I just want to ask how winbox or neighbor search or scan mikrotik routers?
I have read some of the post here but I find it not that complete..


Thanks

Re: How winbox search for Mikrotik

Posted: Tue Jul 28, 2009 10:42 am
by normis

Re: How winbox search for Mikrotik

Posted: Tue Jul 28, 2009 12:07 pm
by rueny01
Hi

Thanks for the reply, that is not what I'm looking for. What I wanted to do is to create my custom winbox application,
The problem is how to replicate the functionality of the browse button of the winbox the one with ("...")
how does that button scan for routers or look for routers, does the browse button send commands to the router? ,according to what i have read the router use UDP 5678, what command should I use for me to get those values send by the router. I'm currently using C# as my programming language.

Thanks

Re: How winbox search for Mikrotik

Posted: Tue Jul 28, 2009 12:13 pm
by normis
I already gave you the link to the protocol that is used. It's not open, it's proprietary, so more details will not be available.

Re: How winbox search for Mikrotik

Posted: Wed Jul 29, 2009 4:33 pm
by rueny01
Thanks for replying.. :) My custom winbox is now working accordingly on what I needed..

Re: How winbox search for Mikrotik

Posted: Fri Aug 07, 2009 7:40 am
by he1ium
We want to program a Mikrotik without using Winbox and the Mikrotik has no IP (ie - you would see 0.0.0.0 if you used Winbox MAC-Telnet). Are you saying it is not possible for us to do this with the APIs provided? We understand you are using a broadcast to send/receive with MAC-Telnet. We would really like to mimic this if it is possible because we want to send our locations unconfigured Mikrotiks directly from the distributor. The problem is, the staff receiving them does not have enough technical knowledge to program them with Winbox. We are writing a small C# based program to do this but it requires the Mikrotik have an IP and the distributor cannot guarantee this. Any help or suggestions would be appreciated.

Re: How winbox search for Mikrotik

Posted: Fri Aug 07, 2009 9:15 am
by normis
the MAC protocol that's used for MAC connection is not open and you can't make your own program

Re: How winbox search for Mikrotik

Posted: Fri Aug 14, 2009 12:05 pm
by hgmamaci
Thanks for replying.. :) My custom winbox is now working accordingly on what I needed..
Can you share your custom program?

Re: How winbox search for Mikrotik

Posted: Thu Aug 20, 2009 4:10 pm
by janisk

Re: How winbox search for Mikrotik

Posted: Sun Sep 13, 2009 4:09 am
by pakillo
Thanks for replying.. :) My custom winbox is now working accordingly on what I needed..
Hi,

I'm making a VB program to configurate RouterOS, via MAC telnet.

I've seen that RouterOS listen on UDP/5678, and that it sends some information to 255.255.255.255/5678/UDP, every minute, or when it receives some string (the string that winbox sends by pressing [...] button).

Now, I have two questions:
1.- What is that string? What I have to send to 255.255.255.255/5678/UDP to make RouterOS respond me?
2.- What's the format of the RouterOS answer? In my VB winsock I receive this:
" B“& INDESAT_Jaen.Mikrotati 3.27 MikroTik
õßA LEUB-8AJL RB333"


Thanks in advance

Re: How winbox search for Mikrotik

Posted: Sun Sep 13, 2009 6:22 pm
by Chupaka
actually, it's a binary data, not simple text

Re: How winbox search for Mikrotik

Posted: Tue Oct 20, 2009 8:13 am
by he1ium
I'm guessing that Mikrotik will never make this available to the public? I can understand the reasons to keep it closed. It sure would be nice to at least have some kind of API that would not undermine your intellectual property and/or security. Is this a pipe dream I will never see? It sure would make my life easier :D

Re: How winbox search for Mikrotik

Posted: Fri Jul 06, 2012 10:53 pm
by dmolley
I don't really understand the reason for the secrecy on the MNDP.
Except for reasons of "we dont want to spend the time to support it" (which is a reasonable excuse), I would think that publishing this protocol could only be helpful to promoting Mikrotik adoption.
Who else but those of us trying to use Mikrotik products would want to discover Mikrotik routers on our network anyway?
And if I were a hacker, and determined to figure it out, I would just wireshark it anyway. So why not help us to get our products linked into Mikrotik routers?
Here is my situation; I am trying to implement a factory-wide network of automation equipment. The TCP enabled automation controllers and other equipment I use are all discoverable by my custom software on my equipment network. If someone adds a device, the software is immediatly aware of it and reconfigures appropriately. Unfortunatly, the software cannot directly discover the routers, and wireless devices that are connected to the system. It would be great to add the routines to my custom software, to allow me to detect when a new router is added to the system. If I could do this with only Mikrotik routers and wireless devices, guess who's routers we will purchase and install from now on??
How about you just give us the source code for the neighborviewer.exe as an example and save us the trouble of wiresharking?