Functions for acquiring the public IP