Adding function to get public IP address