ip methods for ip class