[java] Java chat room

Started by
3 comments, last by eqs 24 years, 2 months ago
Hi yall. Im trying to learn Java to make games in. I decided to take a detour and try a chat room, using client-server style class''. My question is: How do i run the server class at home and on the net? I understand that the client cannot connect to the server without it running. Anyone? Also when setting it up on the net, my URL is www.dreamwater.com/eqs . What would the URL be in the client software?? Thanks PEACE GAZZ
Advertisement
You either need to stay connected to your ISP 24/7 or get exec permission on your ISP.

If you do the former, run the java server on your home computer and it''s IP address becomes the IP address of the server.

If you do the latter, your ISP will tell you where the server is located.
Thanks for the responce.

I think i didnt say it right though. If you were creating a chat, how would you test it?? The book says to run the Server class before trying to log in with the client software. Unfortunately, the book dosent say HOW to start the server going. Do i just put it on a web page and load the page??

Anyone, please help. Times short before college ruins the fun again.

PEACE
GAZZ
I believe SiCrane had it right. Just do ''java [name of server program]'' to get the server running. You need that running all the time. Then you would put the client app on a web page and tell the client program where the server is running (i.e. your static IP address and port #).
You should be able to connect the client to ''localhost'', or IP adress 127.0.0.1 to test the server.

This topic is closed to new replies.

Advertisement