Organize commect to server, that is pointed in input field