local connection with loop and text input