updated getIP method to same logic updated in the XBD class.