Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

AU3Chat Server/Client


  • Please log in to reply
69 replies to this topic

#1 erifash

erifash

    autoit - think free

  • Active Members
  • PipPipPipPipPipPip
  • 517 posts

Posted 06 July 2006 - 12:54 AM

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

Attached Files


Edited by erifash, 25 September 2006 - 02:23 AM.








#2 Skrip

Skrip

    Psychonaut

  • Active Members
  • PipPipPipPipPipPip
  • 2,346 posts

Posted 06 July 2006 - 04:19 AM

Wow....:D

Good friggin' Job!

We're trapped in the belly of this horrible machine.And the machine is bleeding to death...


#3 themax90

themax90

    A new beginning

  • Active Members
  • PipPipPipPipPipPip
  • 1,265 posts

Posted 08 July 2006 - 10:34 PM

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

#4 Daniel W.

Daniel W.

    I hacked 127.0.0.1 !!!

  • Active Members
  • PipPipPipPipPipPip
  • 434 posts

Posted 09 July 2006 - 12:35 AM

wow this is nice :D
--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------

Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.


#5 erifash

erifash

    autoit - think free

  • Active Members
  • PipPipPipPipPipPip
  • 517 posts

Posted 10 July 2006 - 02:28 PM

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, 10 July 2006 - 02:46 PM.


#6 Bounda

Bounda

    Adventurer

  • Active Members
  • PipPip
  • 104 posts

Posted 10 July 2006 - 02:35 PM

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

#7 erifash

erifash

    autoit - think free

  • Active Members
  • PipPipPipPipPipPip
  • 517 posts

Posted 10 July 2006 - 02:50 PM

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, 10 July 2006 - 02:53 PM.


#8 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 10 July 2006 - 07:50 PM

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.

#9 themax90

themax90

    A new beginning

  • Active Members
  • PipPipPipPipPipPip
  • 1,265 posts

Posted 10 July 2006 - 08:58 PM

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.

#10 erifash

erifash

    autoit - think free

  • Active Members
  • PipPipPipPipPipPip
  • 517 posts

Posted 11 July 2006 - 12:50 AM

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:

#11 themax90

themax90

    A new beginning

  • Active Members
  • PipPipPipPipPipPip
  • 1,265 posts

Posted 11 July 2006 - 01:00 AM

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.

#12 erifash

erifash

    autoit - think free

  • Active Members
  • PipPipPipPipPipPip
  • 517 posts

Posted 12 July 2006 - 01:41 AM

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

#13 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 12 July 2006 - 06:13 PM

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.

#14 Rad

Rad

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 412 posts

Posted 16 August 2006 - 09:34 PM

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, 18 August 2006 - 06:52 PM.


#15 jaenster

jaenster

    There is no spoon.

  • Active Members
  • PipPipPipPipPipPip
  • 670 posts

Posted 22 August 2006 - 12:57 PM

Rad , this is NOT bas , just pro !
-jaenster

#16 erifash

erifash

    autoit - think free

  • Active Members
  • PipPipPipPipPipPip
  • 517 posts

Posted 22 August 2006 - 02:18 PM

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.

#17 WTS

WTS

    Polymath

  • Active Members
  • PipPipPipPip
  • 247 posts

Posted 22 August 2006 - 04:45 PM

very nice job erifash :P

#18 Ontosy

Ontosy

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 338 posts

Posted 22 August 2006 - 05:58 PM

very nice job.
why it is limited to 16 user?
for more user it have problem?
ty.

#19 CoderDunn

CoderDunn

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 345 posts

Posted 22 August 2006 - 07:17 PM

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

#20 themax90

themax90

    A new beginning

  • Active Members
  • PipPipPipPipPipPip
  • 1,265 posts

Posted 22 August 2006 - 08:02 PM

http://en.wikipedia.org/wiki/Computer_port_%28software%29

http://en.wikipedia.org/wiki/TCP_and_UDP_port




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users