Use the Network commands to return the full host name and IP address of a specified host, or obtain a table of network interface names and their IP addresses.
Return an object with the name (.name) and addresses (.addresses) of a specified host, where .addresses is a table of strings.
Network.GetHostByName('host')
host : The host name for which to obtain network information.
local ghbn = Network.GetHostByName('localhost') print("GetHostByName("..ghbn.name..")") for _, item in ipairs(ghbn.addresses) do print("-"..item) end
GetHostByName(US-MYCOMPUTER-123.mydomain.com) -127.0.0.1
Return a table of network interface names (.Interface) and their IP addresses (.Address).
Network.Interfaces()
local ni = Network.Interfaces() for _, item in ipairs(ni) do print("-"..item.Interface, " = ", item.Address) end
-Ethernet = 192.0.2.50 -Loopback Pseudo-Interface 1 = 127.0.0.1
Software and Firmware | Resources | QSC Self Help Portal | Q-SYS Help Feedback
Copyright © 2019 QSC, LLC. Click here for trademark and other legal notices. |