Improved determination of IP