Changed the way ip address is put in