This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

mdns network scan
#1
Hello all,
I need a list of hostnames in a local network.
The linux tool mdns-scan would do the job, but I wasn´t able to install it on a LogicMachine5.
Has anyone tried to use mdns-scan, Avahi or a different tool at the LogicMachine5 platform?
Reply
#2
Why don't you just click here
   
LM is already using avahi
------------------------------
Ctrl+F5
Reply
#3
Nice HW collection (:
Reply
#4
Use this, change _http._tcp to the required service name.

Code:
avahi = io.readproc('avahi-browse _http._tcp')
lines = avahi:split('\n')

for _, line in ipairs(lines) do
  ip, port, name, descr = unpack(line:split('\t'))
  if descr then
    log(ip, port, name, descr)
  end
end
Reply


Forum Jump: