but went we webhosted the program is not working its giving a false ipaddress for client. when webhosted my server ip changed 192.168.5.90 to 22.214.171.124 or so .when i started to see from out side system that is not in lan .The program didnot work ,actually clinet ipaddress is 192.168.6.88 but it gave like 126.96.36.199 can any one tell me what might be the problem thanks in advance
IP addresses in the range 192.168.* are not "real" addresses. They are internal addresses that only work in that same network. Generally, not all machines on a network can be reached from the outside; only those that have been especially set up. Ask your network admin if the machine you're trying to reach is accessible from the outside. Chances are it's not, and that he's not going to change that either for security reasons.
I don't understand what exactly you're trying to do, though. What does it mean to "send a response and forward a response" - a servlet can only do one of those things. Also, it looks like the web server is redirecting to an URL on the client - that's a rather strange thing to do; can you elaborate what's happening there?
thanks for the reply, the problem is ,the servlet(in server side) sends response to client servlet.In the client side it invokes a servlet for its purpose(with separate tomcat).The main problem for me is servlet on server side is not catching client side servlet.when i did this in lan it worked ,but outside systems its not working.
Joined: Mar 22, 2005
The client machine is most likely not set up to be accessible from the outside. As I said above, talk to the network admin about that.