Skip to content

A Go-based TCP chat application that recreates the core behavior of NetCat

Notifications You must be signed in to change notification settings

heyZakaria/net-cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

image

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 $port

Open 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:

About

A Go-based TCP chat application that recreates the core behavior of NetCat

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages