How to enter mikrotik from any were

How to enter mikrotik from any were

insert this code in script mikrotik 
insert scheduler 

:local ddnsport 80
# Get the current IP
   :log info "DDNS: Performing remote IP detection."
   /tool fetch address="ip.changeip.com" host="ip.changeip.com" src-path=("/?" . [/int eth get 0 mac-address ]) dst-path="ip.txt" mode=http port=$ddnsport
# delay 5s
  :global iptxt  [pick [/file get "ip.txt" contents] 0 15 ]
  /file set "ip.txt" contents=($iptxt)
#:put ($iptxt)

/tool e-mail
set address=173.194.77.108 from="" password="********" port=587 user=name
/tool e-mail
send to=e-mail@Gmail.com subject="Mikrotik ips" body="Mikrotik ips for Today" tls=yes file="ip.txt"

Comments

Popular posts from this blog

DMASOFTLAB RADIUS MANAGER BILLING SYSTEM v 4.1 Finally Released

How To Configure Nano Station M2 As Access point