Make the script write the current IP address to file (reported by J. Taylor)