Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have Windows 2003 32 bit system in which two ip adresses are present. On doing a cmd (command prompt) - ipconfig i get the following 2 IP adresses and

I have Apache 2.2.4 configured with ModJK and ModSSL, behind it is tomcat 6.0.35. Apache listens on port 9090 (HTTP) and 9999 (SSL) and Tomcat listens on port 8080 (HTTP) and 8888 (SSL).

I have a JAX WS web service (WS A) in an Web Application (WebApp A) deployed in Tomcat and accessed via Apache (HTTPS request) through ModJK and thus ajp. I have a servlet (Servlet B) in the same Web Application (WebApp A) accessed directly in tomcat (HTTP request).

Both WS A and Servlet B invoke another Web Service (WS C). But the Ip address being printed out on the console is different for the 2 types of requests, i mean WS A -> WS C and Servlet B -> WS C.

Please help me i am not able to understand how this can happen. I am a newbee. All answers are valued and welcomed.

Regards Abinash

share|improve this question
Can you clarify what you mean by "the Ip address being printed out on the console is different"? What's printing an IP to the console? Are you talking about a log file? What IPs are you seeing, and what are you expecting to see? –  Shane Madden Aug 5 '12 at 18:59
@Shane IP addresses in WS C are being captured in a log file. WS C is in a Web Application (WebApp D) hosted on the same Tomcat. When WS C is invoked by WS B IP address in log file is But when Servlet B invokes a Servlet within WebApp D (which hosts WS C) i see IP –  Abinash Aug 5 '12 at 19:43
What i need is that the requests to WS C and Servlet with in WebApp D (which hosts WS C) should always go from the single IP that is –  Abinash Aug 5 '12 at 19:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.