08.08.2019, 07:49
This is not standard ping. It tries to connect to port 80, so unless you have a web server running on laptop it will not work.
Use this function instead:
Use this function instead:
Code:
function ping(ip)
local res = os.execute('ping -c 2 -W 5 ' .. ip)
return res == 0
end