Fix get public IP problem