Mikrotik Network Discovery Protocol
This is an implementation written in Node
var NodeMndp = require('node-mndp');
var discovery = new NodeMndp({
port: 5678
});
discovery.on('deviceFound', (device) => {
// retrieve found device here
})
discovery.start();
Ipv6 Example
var NodeMndp = require('node-mndp');
var discovery = new NodeMndp({
port: 5678,
host: "::",
version: "udp6"
});
discovery.on('deviceFound', (device) => {
// retrieve found device here
})
discovery.start();
var NodeMndp = require('node-mndp');
var discovery = new NodeMndp({
port: 5678
});
options {
`host` : default = 0.0.0.0
`port` : default = 5678
`version` : default = udp4
}
Output:
{
"ipAddress":"192.168.88.1",
"macAddress":"aabbccddeeff",
"identity":"Mikrotik",
"version":"6.41.2 (stable)"
}
Pull requests are welcome!