fixed get_ip

Change-Id: I24ae5aaa8f29e4d079da5f31c1a49f171e2af862