erifash Posted July 6, 2006 Share Posted July 6, 2006 (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! 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: 536AU3Chat.zip Edited September 25, 2006 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Skrip Posted July 6, 2006 Share Posted July 6, 2006 Wow.... 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] Link to comment Share on other sites More sharing options...
themax90 Posted July 8, 2006 Share Posted July 8, 2006 As always I am going to make my usual post of AutoIt ITS, and my TCP signature. Good job on your client. Link to comment Share on other sites More sharing options...
Daniel W. Posted July 9, 2006 Share Posted July 9, 2006 wow this is nice --------------------------------------------------------------------------------------------------------------------------------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] Link to comment Share on other sites More sharing options...
erifash Posted July 10, 2006 Author Share Posted July 10, 2006 (edited) Thanks everyone. Always nice to have positive feedback! 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. Edited July 10, 2006 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Bounda Posted July 10, 2006 Share Posted July 10, 2006 im on a wireless router, it only allows people on my network to join.. ive alrdy set up port forwarding CS:S Aimbot - List From INI Funcs Link to comment Share on other sites More sharing options...
erifash Posted July 10, 2006 Author Share Posted July 10, 2006 (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 July 10, 2006 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
RazerM Posted July 10, 2006 Share Posted July 10, 2006 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. Link to comment Share on other sites More sharing options...
themax90 Posted July 10, 2006 Share Posted July 10, 2006 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. Link to comment Share on other sites More sharing options...
erifash Posted July 11, 2006 Author Share Posted July 11, 2006 Sorta makes me sad in a way.Don't be sad... 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. My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
themax90 Posted July 11, 2006 Share Posted July 11, 2006 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. Link to comment Share on other sites More sharing options...
erifash Posted July 12, 2006 Author Share Posted July 12, 2006 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! My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
RazerM Posted July 12, 2006 Share Posted July 12, 2006 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. Link to comment Share on other sites More sharing options...
Rad Posted August 16, 2006 Share Posted August 16, 2006 (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 Edited August 18, 2006 by Rad Link to comment Share on other sites More sharing options...
jaenster Posted August 22, 2006 Share Posted August 22, 2006 Rad , this is NOT bas , just pro ! -jaenster Link to comment Share on other sites More sharing options...
erifash Posted August 22, 2006 Author Share Posted August 22, 2006 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 I use Chr(1) and Chr(2) to seperate the commands because the user is probably not going to use those characters when chatting. My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
WTS Posted August 22, 2006 Share Posted August 22, 2006 very nice job erifash Link to comment Share on other sites More sharing options...
Ontosy Posted August 22, 2006 Share Posted August 22, 2006 very nice job. why it is limited to 16 user? for more user it have problem? ty. Link to comment Share on other sites More sharing options...
CoderDunn Posted August 22, 2006 Share Posted August 22, 2006 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 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 Link to comment Share on other sites More sharing options...
themax90 Posted August 22, 2006 Share Posted August 22, 2006 http://en.wikipedia.org/wiki/Computer_port_%28software%29http://en.wikipedia.org/wiki/TCP_and_UDP_port Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now