Check my private and public IP on Raspberry Pi, then put information to text files