Sign in to follow this  
Followers 0

AU3Chat Server/Client

70 posts in this topic

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



Posted

Wow....:D

Good friggin' Job!

Share this post


Link to post
Share on other sites

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

Posted

wow this is nice :D

Share this post


Link to post
Share on other sites

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

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

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

Posted

This is really good erifash!

Share this post


Link to post
Share on other sites

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

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

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

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

Posted

Just saw this, I like the admin feature!

Share this post


Link to post
Share on other sites

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

Posted

Rad , this is NOT bas , just pro !

Share this post


Link to post
Share on other sites

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

Posted

very nice job erifash :P

Share this post


Link to post
Share on other sites

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

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

Posted

Thanks, that helped alot since I was trying to use a port number of 82153 :P So the port can be anything as long as it's between 0 and 65535 right?

Hallman

Usually true, most of the time we try not to have aserver on well known ports like 80, 21, 25, 110, etc because they are HTTP, POP3, FTP, Telnet, etc

Share this post


Link to post
Share on other sites

Posted (edited)

very nice job.

why it is limited to 16 user?

for more user it have problem?

ty.

It is limited to 16 users because if there were any more it would be like trying to talk at a concert. :P

Too many users chatting at once leads to server lagging and the edit box would scroll down too fast.

Edited by erifash

Share this post


Link to post
Share on other sites

Posted

good job

Share this post


Link to post
Share on other sites

Posted

How you create that the editbox scrolls ! WTF :|

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