Create function to get the instance ip address