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.

IP address
#3
THANK YOU VERY MUCH,

I've been able to verify that if we create a script with the function from the first link on an object:

function ping(ip)
local res = os.execute('ping -c 2 -W 5 ' .. ip)
return res == 0
end
res = ping('192.168.0.11')
grp.checkwrite('32/6/113', res)

And the IP address is incorrect or there's no communication, the script returns 0.

I have a question: I have a series of IP addresses that need to appear on the screen like this, but I can't get it to work.

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
IP address - by ALEJANDRO - 17.02.2026, 12:06
RE: IP address - by Daniel - 17.02.2026, 12:44
RE: IP address - by ALEJANDRO - 04.03.2026, 09:54
RE: IP address - by Daniel - 04.03.2026, 09:56
RE: IP address - by admin - 04.03.2026, 10:20
RE: IP address - by ALEJANDRO - 04.03.2026, 10:36
RE: IP address - by Daniel - 04.03.2026, 10:42
RE: IP address - by admin - 04.03.2026, 10:43
RE: IP address - by ALEJANDRO - 04.03.2026, 10:45
RE: IP address - by Daniel - 04.03.2026, 10:47
RE: IP address - by ALEJANDRO - 05.03.2026, 14:35
RE: IP address - by Daniel - 05.03.2026, 14:36
RE: IP address - by ALEJANDRO - 05.03.2026, 14:42
RE: IP address - by Daniel - 05.03.2026, 14:46
RE: IP address - by ALEJANDRO - 05.03.2026, 14:55
RE: IP address - by Daniel - 05.03.2026, 15:07
RE: IP address - by ALEJANDRO - 05.03.2026, 15:52
RE: IP address - by Daniel - 05.03.2026, 15:54
RE: IP address - by ALEJANDRO - 09.03.2026, 09:42
RE: IP address - by Daniel - 11.03.2026, 08:43

Forum Jump: