Coder Social home page Coder Social logo

chat-server's Introduction

chat-server

A chat server writting in C# that can be accessed via Telnet.

Getting Started

Releases are available for Windows as an .exe at:

Download here.

Once the chat-server.exe is downloaded, simply run the executable to start the server.

Windows Defender may show a warning window.
To run the executable, press "More Info" and then "Run Anyways"

If you are planning on running this server through a public ip address, there must be an inbound rule configured for TCP on port 9399 for ip addresses 0.0.0.0/0

Known Issues

If a client closes the connection without using the /quit command, the server ends up crashing with a StackOverflow exception.

Connecting to the Server as a Client

On Windows 7/8/10, follow this guide to enable Telnet: How to Install and Enable Telnet in Windows 10, 8.1 and Windows 7

Once Telnet is enabled, open up the command prompt and use the following command:

telnet x.x.x.x 9399

where x.x.x.x is the server's ip address, and 9399 is the port.

For MacOS, open up Terminal and use the following command:

telnet x.x.x.x 9399

where x.x.x.x is the server's ip address, and 9399 is the port.

Commands

/join <chatroom> - Adds you to the specified chatroom. Cannot be used while in a room.
/createroom <chatroom> - Creates a chatroom and adds you to it. Cannot be used while in a room.
/w <user> - Privately messages specified user (must be in same chatroom)
/setname <name> - Sets name to specified name.
/rooms - Displays all rooms currently open as well as the number of users
/users - Displays all users currently in your chatroom. Must be in a chatroom to use.
/leave - Leaves the current chatroom
/quit - Disconnects from chat server

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.