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
#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


Messages In This Thread
mdns network scan - by hummelsystemhaus - 15.12.2021, 14:41
RE: mdns network scan - by Daniel - 15.12.2021, 15:10
RE: mdns network scan - by admin - 16.12.2021, 07:14

Forum Jump: