Ping computer hostname or ip, get ip from hostname