Sending and Receiving TCP data over the internet via NGROK or PortMap IO
Why did I decide to make this? Plenty of reasons. For starters, have you watch Mr. Robot? The CLI Chat? That! And I wanted to establish connection between different devices over WAN for remote command execution but NGROK's dynamic IP and lease-limit policy is a huge hindrance.
Honestly, that does not matter to me. I wanted to make this anyway and so I did. I might have reinvented the wheel or not acomplished anything at all but that's fine. I don't mind this.
What ROK have you been living under? o.O If you don't know of/don't have NGROK already, make sure you download it from here! Since the URL and PORTs can be a tad bit confusing if you are new to network programming with Python, here's a comprehensible screenshot of how your ngrok window should look like!
NGROK Command
ngrok tcp <LocalPortToBeExposed>
- First run the server.py in a new CMD window.
- Open up a new CMD and run the client.py file.
The message transmission will be almost instantaneous. Make sure you have your server and NGROK running while the message is being transmitted.