A Simple Encrypted Socket Programming in python3 with pycrypto module
pip install pycrypto (for windows)
pip3 install pycrypto (for linux)
-
Server :- Start ngrok on server side and it should run until client disconnects.
-
Client :- Take ip or url and port allocated by ngrok from server.
- comment the line soc.connect(('127.0.0.1',8888)) like #soc.connect(('127.0.0.1',8888))
- uncomment the line #soc.connect(('ip or url of ngrok','port of ngrok')) like soc.connect(('ip or url of ngrok','port of ngrok'))
- use the ip or url and port allocated by ngrok