Thursday, 9 August 2012

IP lookup

Here a sample script to know own IP in a Lan or the public IP, the original code was of Nick Anotonaccio (re-bol.com), I just updated the code:
Here the source:


my-ip: read http://whatsmyip.org/
parse my-ip [thru <span id="ip">   copy stripped-ip to </span> ]
notify   rejoin ["WAN: " stripped-ip   " ---- LAN: " read join dns:// read dns:// ]

No comments:

Post a Comment