Theengateway on rpi

I installed theengateway on an rpi, I understood for the settings, my problem is as soon as I cut my connection to my rpi not puty, I cut thengateway.

You should run Theengs Gateway as a service then, so it keeps running when you’re not logged in anymore, and automatically starts when booting your Raspberry Pi. You can find instructions here: