• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Chat not Working through Proxy? PLz advice

 
daman sidhu
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic