Depends upon ur subnet mask. if subnet mask is 255.0.0.0 then both ip's are on same network. otherwise you have to calculate according to subnet mask.