Connect to localhost when IP-Inputfield is empty