How can I add to my script WAN IP address?
I want to communicate with dnsdynamic.org to update my IP address.
Command:
https://login:password@www.dnsdynamic.or...=127.0.0.1
I must change myip to WAN IP.
I tried to do this based on the above example:
I have an error:
Line 0: bad argument #2 to 'connect' (number expected, got string)
Do you what is the problem?
I want to communicate with dnsdynamic.org to update my IP address.
Command:
https://login:password@www.dnsdynamic.or...=127.0.0.1
I must change myip to WAN IP.
I tried to do this based on the above example:
Code:
require('socket.http')
socket.http.timeout = 60
wan = socket.http.request('http://myip.dnsdynamic.org/')
log(wan)
require('ssl.https').request('https://buuuudzik@gmail.com:vl!45z8N@www.dnsdynamic.org/api/?hostname=house01.ddns01.com&myip=' .. wan)
I have an error:
Line 0: bad argument #2 to 'connect' (number expected, got string)
Do you what is the problem?