up shell check ip

check input is ipaddress