getter and setter for ip field value