TCP Chat — NetCat Clone
A Go-based TCP chat application that recreates the core behavior of NetCat (nc) using a client–server architecture.
Multiple clients can connect to a single server and communicate in a real-time group chat.
This project simulates NetCat in server mode, enabling:
- Multiple TCP clients
- Real-time message broadcasting
- User identification
- Connection management
Prerequisites
- Go installed (
go1.20+recommended) nc(NetCat) installed
Run the Server
cd net-cat
go run main.go (default Port is 1234)
OR
go run main.go $portOpen another terminal:
nc localhost 1234
The program will ask you about your name Username Rules Allowed:
- A–Z, a–z, -
- No spaces or numbers
- Use - to join anonymously
Done By:
