encapulate ip to IP object