handleIp handles expired ttl and forwarding