*World's First ever chat repository which lets you chat over the internet from anywhere with your friends or family members using Termux and Ngrok. Why use WhatsApp when you don't have privacy? Use th[...]
- Lightweight
- No connection issues
- Localhost chat over Wi-Fi or hotspot
- Supports all file formats
- Send directories (zip them first)
- Requires Ngrok account and authtoken
- Easy Ngrok authtoken acquisition
- Uses sockets for stable connections
- Built with Python
- Compatible with Termux
- Runs on other environments
- Regular updates and bug fixes
- 24×7 issue resolution service
cd $HOME
apt update -y && apt upgrade -y
pkg install git
pkg install openssl
pkg install python
pkg install wget unzip
git clone https://github.com/kaifcodec/Term-chat.git
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
unzip ngrok-stable-linux-arm.zip
mv ngrok /data/data/com.termux/files/usr/bin/
cd Term-chat
pip install -r requirements.txt
python server.py
-
Server Start
- After completing the above commands, your server will start successfully.
- It will display "Server started at 0.0.0.0:port".
- Note the port number.
-
Ngrok Setup
- Start a new session and enable the hotspot on your phone.
- Get your Ngrok authtoken from the official site.
- Run
ngrok config add-authtoken 'your_authtoken'
- Run
ngrok tcp 'port'
(use the server's listening port) - Ngrok will provide a link like
tcp://0.tcp.in.ngrok.io:port2
. Copy it.
-
Client Connection
- In the Term-chat directory, run
python client.py
- Enter the copied Ngrok link IP (i.e. 0.tcp.in.ngrok.io) and port.
- Choose your nickname and join the server.
- In the Term-chat directory, run
- Clone the repository in their Termux.
- Install the requirements.
- Start
client.py
usingpython client.py
. - Enter the same IP and port from the Ngrok link.
- Choose a nickname and start chatting.
- File Transfers
- Copy the path of the file you want to send.
- Type
#file
in the chat. - Paste the copied path when prompted.
- Press enter to send the file.
- Server IP Issues
- If starting the server one after another, change the server IP on which it is listening (use the nano tool for editing).
- Upcoming Automation
- Automation functions will be updated soon.
- Issue Reporting
- Open an issue if you encounter any errors and provide screenshots for quick resolution.
Feel free to reach out for any support or suggestions at [email protected]!