logic to show a console app connecting
final demo