Logic Machine Forum
Link die! Help me - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Link die! Help me (/showthread.php?tid=937)



Link die! Help me - phongvucba - 11.08.2017

Please help me!
I still use this code to send the IP value every time it changes. But that link has been Die.


"Http = require ('socket.http')
Http.TIMEOUT = 5
Local ip = http.request ('http://plotnikovv.ru/lm/logic.machine.92453i46.php')
Local oldip = storage.get ('myip')
If (ip ~ = nil and ip ~ = oldip) then
  Log ("Change my ip =" ip)
  Storage.set ('myip', ip)
  Mail ('aggfftc@gmail.com ',' Ctrinh Mr.Phuonghs569VC ',' IP '.. ip)
End
"
Link Die:
Local ip = http.request ('http://plotnikovv.ru/lm/logic.machine.92453i46.php')


Is there any other way? help me

Thank so much ! 


RE: Link die! Help me - admin - 11.08.2017

you can use http://openrb.com/ip/ to get current IP address