sri dhar

Greenhorn
+ Follow
since Apr 07, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sri dhar

Hello EveryBody,
Let me first explain my problem.
I have developed Chat Application Using ServerSocket and Socket.
I have an Applet Chat Server which is called ChatServer which the server which serves the Applet client Applet.
Im have deployed both the ChatSErver applet and Chat Client applet emebedded in an HTML.
So that The Chat administrator can access it from any where .
Is this correct ? pls let me know. Im getting this exception in the ClientApplet
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at DhanishClient.startClient(DhanishClient.java:106)
at DhanishClient.initComponents(DhanishClient.java:77)
at DhanishClient.init(DhanishClient.java:23)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
DO i have to give policy permmision in tomcat.
IS THIS WAY FIRST OF ALL RIGHT FOR CHAT SYSTEM.
PSL LET ME KNOW
How can i get RemoteHost Address from ServerSocket, is there any way i can get the client details like (Servlet Request class getRemoteHost() etc)
pls let meknow
Hello Mr.Ravish,

(since we dont have a web server for our own self and also as told by u the WEB host will not grant us permission to run my socket program);
Thanks for clearing my doubt. I still have some doubt .pls let me know whether i can CAN I DO THIS
1.Run the ChatAdminServer in my LAN network .and i will give all permission for a client applet residing in the web on some other web server machine.
2. And also we are getting an IP which is not static .It changes daily so what we can do..
If so pls let me how can i do this.
Attention pls Mr.Ravish
Thanks for you iteresting response. But could u help further by tell ing teh reall steps needed to implemnt the Socket server.
i.e pls let me know where should i put the my ChatAdminServer ,ChatClient(applet in html);
do i have to get a Port from the Internet host .Becuase as such we dont have WEBSERVER for our company we are relying on some other host.
So pls let me knwo the steps involved elaboratley becuase i would like to understand more about this issu.
thanks for you time once again
sridhar
Attention pls Mr.Ravish
Thanks for your reply. can u tell me
1. Is it necessary that both the Chatsocket SErver and client should be run in the same server. pls let me know
I have developed a chat program using Server socket and Client as Applets. now im stuck with the implementation in WEB SERVER IIS.
Pls tellm me what should be done ??