added addip method

Method adds an ip to the end of a string array and returns the array