File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Chat not Working through Proxy? PLz advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Chat not Working through Proxy? PLz advice" Watch "Chat not Working through Proxy? PLz advice" New topic
Author

Chat not Working through Proxy? PLz advice

daman sidhu
Ranch Hand

Joined: Aug 19, 2000
Posts: 184
Hi Guys,
I have a probelm, using sockets i have built a chat application which is running just fine on dialup , but it is not working with proxy server,that is if the client logs in thru proxy then the server is not able to identify him and the client application throws exception.. Can anybody advice me, ill be grateful,
Regards,
Daman
Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
hi,
If the client is connecting thru a proxy, there is no mean by which the server can contact the client. This is because when a request goes to the server from the client, it is the proxy's ip address that goes to the Server and the response from the server goes to the proxy, which obviously doesn't know what to do with it. I think what u should do is, if for some reason the server can't contact the client, it should store the message in the database and let the client poll for messages using a servlet or something
parul patidar
Ranch Hand

Joined: Sep 07, 2001
Posts: 53
use http protocol
if u don't know how to do this
read
java servlet programming
by-jason huntor
u can find a simple chat which uses servlet as server

Originally posted by daman sidhu:
Hi Guys,
I have a probelm, using sockets i have built a chat application which is running just fine on dialup , but it is not working with proxy server,that is if the client logs in thru proxy then the server is not able to identify him and the client application throws exception.. Can anybody advice me, ill be grateful,
Regards,
Daman

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Chat not Working through Proxy? PLz advice
 
Similar Threads
Chat Application...
Client window opening in Server Machine..!
Problem in RMI based chat server...
Running an applet in www accessed using proxy server
Communication behind Proxy