I've been using localtunnel for quite a while and now I wonder how it works under the hood. Here is one article I read which explains the same.
Here are few terminologies which I don't understand from the above article:
the localtunnel server fires up a new TCP server on a randomly generated port greater than 1023
How is it possible to fire another server within a server?
If the localtunnel client is able to connect to the localtunnel server’s randomly generated TCP port, by default it opens 10 TCP sockets to the server.
What is the purpose of opening TCP sockets with the server when client can connect to the server by hitting some specific URL whenever required?
I've also tried to read the code from it's Github repository, but It's too complicated to understand the basic concept, as I'm beginner to Nodejs and it's frameworks.
Any basic explanation would help!