Thread with port opening
Run until user input