How to connect from your app or a terminal