HmmZ
May 18 2005, 10:46 PM
| | I have made a small piece of code for a java chat and i need a port to connect to, i tried the cpanel display (2082) and port 21(as seen in many posts when using search), but both seem to give errors in the chat, in the sense of displaying really strange things (html code for cpanel and for port 21 it continuously returns 500 ?).
I have installed the chat the following way: base root directory/chat-folder/chat-client/webpages/chat-client12.html (wich is in the same directory as where www/public_html and public_ftp are located) and public_html/chat-folder/chat-client/webpages/chat-client12.html
I was able to locate the server ip (as shown in cPanel) but all i need is a valid port to connect to...is there any way? (and no i dont wanna use phpmychat or cgi-chat)
|
Reply
HmmZ
May 19 2005, 09:51 AM
Could this member please get an answer?
Reply
Spectre
May 26 2005, 03:21 PM
You can't just connect to any given port that is already in use and expect it to magically work. I'm not exactly sure of what program you are using, but if it isn't peer-to-peer (ie. connects would-be chatters directly to each other), then it needs to have a server listening somewhere on a specified port. I believe it is a violation of Trap17's TOS to run resident programs on the server, so I don't think it's a great option. Unless I have taken this entirely the wrong way, and completely misunderstood what you're asking. The way most CGI web-based chat systems work is by storing all received messages in the database, which is then periodically checked by the script and delivered to each user in that chat session. Which is why you may have noticed your window constantly reloading if you've ever used such a system. I would recommend you either get someone to host an IRC channel or an operating chat server for you, or let the idea go. Unless, as I've already said, I've taken something the wrong way.
Reply
HmmZ
May 27 2005, 12:49 PM
Alright, to make it more clear (although i think you fully understand what i meant), heres the install description from the creators website QUOTE 3. If you're using Linux on an x86 server, then a precompiled copy of the chat server program (chatserver) is already in the chat-server/bin/ subdirectory. If you have a different environment or you just feel like recompiling the code again, go to the chat-server/src/ directory and type:
make
This should recompile the chatserver again. Move the compiled program into an appropriate directory, if necessary.
3.1. You can also recompile the chat-client java source code, if you make any changes to it or simply feel the urge to do it for no particular reason. If you wish to do this, simply go to the appropriate directories (chat-client/java_1.x_src/) and recompile the *.java files. If you're on a *nix environment AND have a java compiler installed, there is a Makefile in each directory so that you can also type make to recompile the project. Don't forget to move the *.class files that are generated by the compiler to the appropriate webpages/ directory!
4. If the chatserver program is not on your webserver, then transfer it to your webserver now. Execute the chatserver program on your webserver by typing:
./chatserver 6668
This should start up the chat server program and tell it to listen for connections. Note that 6668 is a port # that the chat server should listen for connections on. If you wish to use a different port #, feel free to change the command appropriately. Normally, you should choose port numbers that are greater than 1024.
You can also optionally place a text file called motd.cf in the same directory as the chatserver program. This file contains the message of the day that will be displayed automatically to the user when a chat session is initiated. Edit the motd.cf file to customize your own start up messages or place an advertisement or whatever. Only ensure that the length of each line in this file does NOT exceed 80 characters.
5. Determine the IP address of your webserver. Go to the directory chat-client/webpages/ and edit the files chatclient_11.php and chatclient_12.php. Change the IP parameter of both files to the IP of your webserver. If you started the chat server in the step above with a port # other than 6668, then change the port parameter to the appropriate number as well.
6. Move the files under the chat-client/webpages/ directory to your webserver.
7. Open a web browser and navigate to http://(your website URL)/chat-client/webpages/javachat.html
8. From the page above, select either of the links to try out the AWT or the Swing chat client.
If you're having trouble setting it all up or you want to have some features added to this program, please let me know. All suggestions are welcome. Source: Mayukh
Reply
Similar Topics
Keywords : chat, port, java
- I Need Help With Setting Up My Site, Made Using Java
any help would be appreciated (5)
Internet Relay Chat
(2) First of all, before I ask my question, I do understand that running a server and running a bot on
this hosting is against the Terms of Service and Acceptable Use Policy, I am not asking to do either
as stated in the rules. Am I allowed to have a Java IRC client on my site for people to be able to
connect to another server, or is that against the rules as well? I haven't been able to track
down an answer to the question in the search function, so I thought I would check it out here before
I add anything to my website. If this question has already been answered, feel....
Something About Chat...
(7) Are we, users alowed to have PHP chatrooms on our presentations?....
How Can I Delete A Php Chat Room?
How can i delete a PHP Chat Room? (5) in the CPanel, i have made a PhP Chat room..and i want to get rid of it..how would i do this?....
Java/cgi Chat Room
(5) Does the Java or the CGI chat room already installed on the server in cpanel work? Because they are
not working for me. I've tried both and they both fail to work. In cpanel, its under
"preinstalled Scripts" then "Java/CGI Chat Room" When I try the java chat room, I get this error:
When I try the normal cgi chat, I get a page cannot be displayed error. Do the chat rooms just
don't work? or is there something to fix this? Any help would be appreciated.... P.S. I did
search for this topic and found one topic pertaining to this topic, but I still wou....
A Problem With The Javascript/cgi Chat
(2) when u create it it doesnt go into the mySQL database. Its a small problem but i live this better
then the php chat cause this one opens in a new window....
Irc Chat For Trap17
IRC chat, #Trap17 (4) Thanks to m^e and szupie for this. We have an IRC chat now, it's at irc.dal.net and the name is
#Trap17. A good IRC client is mIRC, you can get it at mirc.com. To join this channel for all of
those new to IRC, type /server irc.dal.net and then after you connect, /join #Trap17 ....
Help With Phpbb And Phpchat
Hel with phpBB and Chat please (3) Hallo, just uploaded my site with help from some of u and now i have added the phpBB and phpchat
into my account and linked it to my webpages. Now i have question on phpBB and php Chat HOW do u
create link in BB and Chat to link BACK to my website page(home page) i worked with the admin
settings in BB but didn't find any options to alter to add link. AND same goes with chat, i
didn't even find a link to access admin control in php CHAT, and how do u add link to point back
to my website. Also in phpBB how do u change the right hand top image, its defualy in phpB....
Normal Cgi Chat
some questions (1) CODE <form target="entropychat"
action="http://online.trap17.com:2084/"> Nick Name: <input
type="text" name="nick" value=""> <input type="hidden"
name="channel" value="online.trap17.com"> <input type="submit"
value="Enter Chat"> </form> Thats the normal cgi chat code and I have a few
questions concerning it: -Is it possible to change background and other colors? -Is it possible to
(when click submit) to open it in the same window...c....
Java Script Problem
(8) hey..are java scripts allowed? cause i've been trying to put this script..it's like an
advertisement.. but it will not allow me.. when i try to put it it gives me this error " These HTML
Tags are not allowed? anyone have this problem or know how to fix it?....
Cgi Chat Doesn't Work.
Help! (2) I put a cgi chat on my site, and it was working, I was talking to about 6 people other than me, and
then it froze. I closed the window and tried to get in again, but it said the site couldn't be
found. I checked to make sure the code was right and everything, but no luck. Can anyone tell me how
to fix this?....
Free Live Chat In Java/jsp
live chat sample java/jsp (1) Dear All Members! Does anyone have experiencing in live chat? this we call live help. I need
to have on my site on trap17.com. i have installed the live chat but it seem not working well. i
wonder if anyone have it in JAVA or JSP, please let me know.. I think some of members in trap17
also need it. Thanks & Best Regards, Dorei /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> ....
Flash Chat
(1) I have my own flash chat but i heve no idea how to install it. /sad.gif' border='0'
style='vertical-align:middle' alt='sad.gif' /> Can somebody help me with that? I want it to
connect to my chatroom on irc. my thanks upfront.....
Looking for chat, port, java
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for chat, port, java
*MORE FROM TRAP17.COM*
|
advertisement
|
|