A function to get the real IP address.