Hello...
I am the family tech support guy and 'manage' about 5 machines all over the place using Apple Remote Desktop 3. Now, since these machines get dynamic IPs, I whipped up a little applescript that would tell me the machine's LAN IP and the WAN IP. Here it is:
[FONT="Courier New"]set theData12 to do shell script "ifconfig | grep \"inet\" | tail -1"
set j to the offset of "inet" in theData12
set k to the offset of "netmask" in theData12
set theIPLocal to (characters (j + 5) thru (k - 2) of theData12) as string
set theData14 to do shell script "curl -l \"http://whatsmyip.islayer.net/\""
set finaloutput to "LAN IP: " & theIPLocal & return & "WAN IP: " & theData14 as string
do shell script "echo " & finaloutput & " | mail -s 'IPSender Alert'
myemail@myisp.com" [/FONT]
i've set it as the login item, and it runs. but for some reason, i'm not getting the email. it doesn't seem like it's going out even. could it be that the ISP is blocking local SMTP communications?
any advice or workarounds are much appreciated!
thanks