LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2008, 11:39 PM   #1
umach
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Tomcat HttpServlet cannot see correct remote address


I have a pound reverse proxy on port 80. It redirects all calls to 8080 where my Tomcat is running. My program needs to access the remote client address using method getRemoteAddr() . However I get the address as 127.0.0.1. I am guessing this is because of the pound reverse proxy intercept and forward mechanism. How can I fix this problem. I was thinking that perhaps I can get pound to extract the remote address of the incoming call and add it as a header(with a name like "RemoteCallerIP") when forwarding the call. I can then call the getHeader("RemoteCallerIP") in the Tomcat servlet and extract the remotre caller IP. If this is the right approach can someone help with the snntax for pound.cfg file to solve this. If there is another approach that is correct I would like to know that.

Thanks,
Umach
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
do not recieve correct ip address from dhcp server BCarey Linux - Wireless Networking 2 06-09-2006 02:27 PM
Setting Tomcat Connector with Remote Worker linux_pioneer Linux - General 1 02-05-2006 08:53 AM
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
Remote Restart Tomcat PerfectReign Linux - Security 2 05-16-2005 11:33 AM
ni52 can't find memory, but address correct Wim_Woittiez Linux - Hardware 0 12-01-2003 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration