Skip to content

Instantly share code, notes, and snippets.

@gingerale20
gingerale20 / chat.py
Created April 6, 2025 20:27
2-WAY TCP TELNET CHAT
#This program is messy. For some reason I can't get it to accept another connection after the current one is terminated.
#Program requires restart after connection sadly.
#I copied and pasted a lot of code to create it (from the internet and my past scripts), so don't expect it to be too good.
#If anyone knows how to fix its issues that would be exteremely helpful.
#-----------------------------
import socket
import sys
import time
import threading