printing ip on button push