Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Java Chat help

  Asked By: Carolina    Date: Nov 30    Category: Java    Views: 745

I have written a chat application using Java sockets. The
applicattion runs fine for direct connections to internet. However,
it fails when i have to go through our proxy server. Can anyone help
me in solving this problem.



3 Answers Found

Answer #1    Answered By: Nagina Mian     Answered On: Nov 30

Depending on the proxy  server lots of different things can be happening.

The way proxy servers work is that they forward packets from your
machine to the internet  and so on.

What is happening is that the server  is getting the right IP information
to talk to your computer. It might be getting the IP number of the
proxy server (because it is acting like a router and posting its own IP
number) ... heck it can be a lot of different reasons.

One idea that I am having is that your server is looking for a IP number
192.168.0.XXX, that won't work ... In theory your server should get the
IP of the machine acting as a router, and the router should remember
that all messages on a particular port number are in fact for your IP
number ... basicly.

Answer #2    Answered By: Whitney Cruz     Answered On: Nov 30

Thx for your reply,
we are using router.iam passing IP address to connect chatServer.
it's saying host unreachable.if it's possible to send me the sample code.

Answer #3    Answered By: Asir Hashmi     Answered On: Nov 30

Do you have your proxy  settings correctly setup? Unfortunately, java  doesn't
automatically get the proxy settings from the browser.


Didn't find what you were looking for? Find more on Java Chat help Or get search suggestion and latest updates.