24.08.2021, 13:25
(24.08.2021, 13:20)Daniel. Wrote: Try running this script, change server and port accordingly to yours.
Code:function checktcp(ip, port)
local sock = require('socket').tcp()
sock:settimeout(1)
local res, err = sock:connect(ip, port)
sock:close()
return res, err
end
-- change IP/PORT as needed
res, err = checktcp('smtp.gmail.com', 465)
if res then
log('connect OK')
else
log('connect ERROR', err)
end
thanks, Daniel
I got this in the log:
* arg: 1
* string: connect ERROR
* arg: 2
* string: Host is unreachable
so its firewall issue
Best Regards,