Append to logs, log stderr as well
Check network status before trying to upload data
Refactor network information gathering
Fetch public IP from ifconfig.me