functionis_lan_ip(ip)--Split the IP address into its octets
local octets ={}for octet inip:gmatch("%d+")do
table.insert(octets,tonumber(octet))
end
--Checkif the IP is in the range ofprivateIP addresses
if octets[1]==10 then
returntrue
elseif octets[1]==172 and octets[2]>=16 and octets[2]<=31 then
returntrue
elseif octets[1]==192 and octets[2]==168 then
returntrueelsereturnfalse
end
end