You can find the details here:
]http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html] getRemotePort() -- returns the port of the client that sent the request -- in this case it is 20.0.1.7
getRemoteHost() -- Returns the fully qualified name of the client that sent the request, which in this case will be "abc.def.ghi"
getServerPort() -- to which port was the request originally sent? , in this case it is 25.0.1.7
getLocalPort() -- where the request ended up -- in this case '25.0.1.8"
[ August 24, 2007: Message edited by: M Krishnan ]