socket.getInetAddress().getHostAddress() wierd issue
I have a legacy server application written in java which has been running fine over the last siz years on a windows 2003 machine running Java 6
We recently migrated the apoplication to a brand new windows 2008 mchine runnign the latest version of java.
Although the application seems to work fine, there is one wierd issue

The code 
String remoteip=socket.getInetAddress().getHostAddress() seems to return the internet IP of the server machine instead of returning the IP of the remote client.
This was working properly on both linux and windows 2003 machines over the last 6-7 years.

To double check all settings, i setup a small php website on IIS and printed the value of REMOTE_ADDr variable. It printed the correct Ip address of the client.

Any clues on what could be confusing the java app

Regards
socket.getInetAddress().getHostAddress() wierd issue
===

I have a legacy server application written in java which has been running fine over the last siz years on a windows 2003 machine running Java 6
We recently migrated the apoplication to a brand new windows 2008 mchine runnign the latest version of java.
Although the application seems to work fine, there is one wierd issue

The code 
String remoteip=socket.getInetAddress().getHostAddress() seems to return the internet IP of the server machine instead of returning the IP of the remote client.
This was working properly on both linux and windows 2003 machines over the last 6-7 years.

To double check all settings, i setup a small php website on IIS and printed the value of REMOTE_ADDr variable. It printed the correct Ip address of the client.

Any clues on what could be confusing the java app

Regards