Skip to content

pixe71/TCP-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—จ๏ธ Simple TCP Chat

C#

Welcome to this basic TCP chat application written in C#!
It consists of two console programs working together to send and receive messages over the network.


๐Ÿš€ Features

  • ServerApp: A TCP server that listens for client connections and echoes received messages with timestamps.
  • ClientApp: A TCP client that connects to the server and sends messages.
  • Real-time message exchange via console.
  • Exit gracefully by typing exit.

๐ŸŽฏ Prerequisites


๐Ÿ› ๏ธ Setup & Running the Project

1. Clone or Download the Project Files

Ensure you have these two folders:

/ServerApp /ClientApp


2. Start the Server

Open a terminal, navigate to the ServerApp folder, then run:

cd "path/to/ServerApp"
dotnet run

it will write:

Server started. Waiting for a connection...

Open a other terminal, navigate to the ClientApp folder, then run:

cd ClientApp
dotnet run

it will write:

Connected to the server!
You:

You can now write in the client terminal and it will upload it to the terminal server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages