I have a server behind a dsl modem that has a dynamic ip address assigned. I need to remotely access this server a couple of times during the day. I don't have anyone that can provide me with the ip.
I tried to make a script that will get the ip address with wget:
. This command downloads the n0923.... file with the modem's external ip. After downloading the file I needed to email me with the ip address:
mail -a "Content-type: text/html;" -s "New IP Address" firstname.lastname@example.org
Since, I am using dynamic ip address I am unable to send emails from that server.
Does anyone have an idea on how I can accomplish this task?
Thanks in advanced.