Fixing typo in get_ip() function