Fix external IP discovery