Sign in to follow this  
Followers 0

AU3Chat Server/Client

70 posts in this topic

#1 ·  Posted (edited)

I have created a program will host a chatroom that supports up to 16 users. The client can connect to the server and send messages to all users or send a PM to a single user. When connecting, just type in the IP address of the server and the username you want to connect as. I know that others have made various chat programs but this was designed to be simple to use and modify. This program writes nothing to the registry and requires no other includes besides GUIConstants. If you have a router you can get this to work over the internet by setting up port fowarding. You can modify the port it connects to in the code. The source is attached, I hope you like it! :D

EDIT: Added an "admin" user with kick privelages. Please see Post #13 for more info.

EDIT2: Updated. Added admin password encryption. See Post #31 for details.

Previous combined downloads: 536

AU3Chat.zip

Edited by erifash

Share this post


Link to post
Share on other sites



#2 ·  Posted

Wow....:D

Good friggin' Job!


[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Share this post


Link to post
Share on other sites

#3 ·  Posted

As always I am going to make my usual post of AutoIt ITS, and my TCP signature. :D Good job on your client.

Share this post


Link to post
Share on other sites

#4 ·  Posted

wow this is nice :D


--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thanks everyone. Always nice to have positive feedback! :wacko: I might make an admin feature on the client so you can kick users etc... Just have to type in the server password, which will be hardcoded. Of course when I get around to it. :D

Edited by erifash

Share this post


Link to post
Share on other sites

#6 ·  Posted

im on a wireless router, it only allows people on my network to join.. ive alrdy set up port forwarding

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Have you set up port fowarding on both computers (server and client) if they both have routers? What type of router do you have?

Edited by erifash

Share this post


Link to post
Share on other sites

#8 ·  Posted

This is really good erifash!


My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

Share this post


Link to post
Share on other sites

#9 ·  Posted

Wow, you make a simple client and server and everyone praises it, I have a chat project and tons of TCP examples and optimized internal servers and I get very little. Sorta makes me sad in a way.

Share this post


Link to post
Share on other sites

#10 ·  Posted

Sorta makes me sad in a way.

Don't be sad... :D You'll make me sad! Besides, you did all that work on AutoIt ITS, maybe it is just too complicated for some people to understand (no offense). When I make something simple the topic usually dies in a week or two, then resurfaces a year later, and by that time there are better examples spawned from the same basic idea. :wacko:

Share this post


Link to post
Share on other sites

#11 ·  Posted

It is a very simple process. You just register, and login, and chat. Only the code gets a bit tangly which is going to be documented soon. The original idea was as basic as yours but people still got confused with it.

Share this post


Link to post
Share on other sites

#12 ·  Posted

Updated! I have added an admin feature which acts like a normal user only with the ability to kick other users. The feature is built in to the client so you don't have to be at the server computer to be admin. The server now technically supports 17 users as the last spot is reserved for the admin. To be an admin, for the username type "admin" then it will ask you for the server password which is "qwerty". You may change the password in the server code. The client does *NOT* encrypt the server password when sending it to the server to verify it is correct. Check the first post for the download! :D

Share this post


Link to post
Share on other sites

#13 ·  Posted

Just saw this, I like the admin feature!


My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

Ohhh i like this! Its to bad I dont understand any of the TCP stuff and you use the Chr(x) alot too I dont get that either :P

Edited by Rad

Share this post


Link to post
Share on other sites

#15 ·  Posted

Rad , this is NOT bas , just pro !


-jaenster

Share this post


Link to post
Share on other sites

#16 ·  Posted

Ohhh i like this! Its to bad I dont understand any of the TCP stuff and you use the Chr(x) alot too I dont get that either :P

I use Chr(1) and Chr(2) to seperate the commands because the user is probably not going to use those characters when chatting.

Share this post


Link to post
Share on other sites

#17 ·  Posted

very nice job erifash :P

Share this post


Link to post
Share on other sites

#18 ·  Posted

very nice job.

why it is limited to 16 user?

for more user it have problem?

ty.

Share this post


Link to post
Share on other sites

#19 ·  Posted

I have a noob question i've been wondering for a while ...

I know nothing of tcp stuff and iv'e been trying to make my own chat thing :P but what does the port # do exactly? And also, how do I know what to use as a port number or does it matter?

Thanks, Hallman

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0