added ifconfig as fallback for external IP grab