I am having an electronic device that I wanted to access remotely. I know that I can access my device via ngrok, I just want to understand how the ngrok works internally.