Ok, I did it, but when I try to connect I get a time out error on my client end?
As was said before, the port needs to be opened (1234 unless you change it). You shouldn't be getting any error which is why I think either the port was not opened correctly, or there is a firewall blocking access.
Here are some steps you (or anyone else experiencing this problem) should follow:
1. Disable the Windows XP Firewall (or other firewall if you have one) or allow BOTH the server and client to access the internet through your firewall.
2. Go to Start -> Run -> and type "cmd" and press enter. (You may need to enter "command" for other versions of Windows). This will open a command prompt.
3. Type "ipconfig" and press enter. It should show your LOCAL IP address if you are behind a router (ie: 192.168.1.101). This is the IP address you will use to setup your router.
4. Now, you need to get into your router settings. You can usually do this by opening a web browser (Internet Explorer/FireFox, etc) and typing in your router's IP address. This is usually 192.168.1.1 or something like that.
5. It will prompt you for a username and password. The defaults are usually something like "admin/admin", "admin/administrator", etc.
6. Once you are in your router settings, you need to find "Port Forwarding". There are several fields. For the application name, enter anything, like "VBChat" or whatever. Then enter the starting port, and ending port. For this program, by default, the port is 1234. So enter 1234 in both boxes.
7. Then there is a "Protocol" dropdown box. This program uses TCP, but to be on the safe side, just select the "Both" option.
8. Enter the last 3 digits of your LOCAL IP, that was found in step #3.
9. Then save the settings. Close all instances of VBChat that you might have open, and restart it. It should work.
The quickest way, is to find the "DMZ" option in your router settings and enable it for your IP address. However, I don't recommend doing this as it opens ALL ports on your router and leaves your computer wide open.
I downloaded the source code and am currently adding in some more features (multiple rooms, private messages, maybe emoticons, webcams, file transfers, whiteboard, and probably a few other things so stay tuned ).
Last edited by DigiRev; Feb 1st, 2008 at 02:43 PM.
lol Thanks but I would like to have a sound play when someone sends a message, where would I put the play sound code?
And when some enters the chat?
Look in the DataArrival() event to find the name of the sub that is responsible for handling when a message is received and when someone enters/leaves.
Then go to the code for that sub and put your "play sound" code there.
Sorry it's taking so long for the update. I've been real busy doing jobs on www.rentacoder.com and haven't had any free time.
There are a lot of smaller projects < $200. There are also those that are $500-$2,000+. There's a wide variety of different types...for every possible programming language you can imagine. Not that many for VB6. Lots for PHP/MySQL, HTML, CSS, etc.
I've been doing a lot of the smaller ones, myself. Hopefully I can land a big one soon.
I was wondering, is there a way to change the color of the text you type with and when you send a message the text will look the same in the conversation box?
I don't know how this app is built, but if there is a regular textbox, you need to replace it with a RichTextBox control.
With that, sending the .rtfText property (instead of the .Text), you might be able to send multiple colors, but I'm not sure though.
TheBigB is correct. If I remember my own project correctly, I used a standard TextBox to keep things as simple as possible.
My original plan was to make this and hope that people were able to learn from it and add in their own features as a learning experience, that's why I kept it so basic.
But I've gotten a lot of requests to modify it and so that is what I am almost done doing now (except I started a new one from scratch)...
Server setup wizard
Custom room creator with passworded rooms
User-created rooms
Rich text (using the RichTextBox control)
File transfers/folder sharing
Admin features for server (kick, ban, warn, global message)
Webcameras
Whiteboard
Finally done with all of my RentACoder projects so I have time to work on it now...stay tuned.
i'm having trouble getting bold italics and underline to show in the chat window. also my users are wanting to have special colors for their names, any help.
Every time I get back to work on this, something else keeps coming up. Just want to let you know that I have been working on it and there really isn't much left to do and I am finishing it up.
Edit: minidesigner, choosing colors for names is a good idea actually, never thought of that. I will put that in there also.
I would just like to thank DigiRev... I downloaded your source and have started fine tuning it for what I am looking for personally. I just want to thank you for being willing to do so much work for no monetary reward. A lot of people wouldn't be willing to do such work. I like the classic version and will continue coding ontop of it.
Question though (for anyone) is it going to be OK to continue programming in Visual Basic 6.0 or is Visual Basic 2008 Express the way to go for free lance programming for personal use?
I would just like to thank DigiRev... I downloaded your source and have started fine tuning it for what I am looking for personally. I just want to thank you for being willing to do so much work for no monetary reward. A lot of people wouldn't be willing to do such work. I like the classic version and will continue coding ontop of it.
Question though (for anyone) is it going to be OK to continue programming in Visual Basic 6.0 or is Visual Basic 2008 Express the way to go for free lance programming for personal use?
We like to have people create their own threads for questions like this but in any case, while VB6 will be around for several years at least, (sadly) you should probably switch over to 2008.