jsp getting the ip
how can I get the ip of the server from a jsp page? because we will use a server cluster for distributed workload, but I want to use the same server for all subsequent requests from the same session, so I need to get the ip from the jsp page.
[256 byte] By [
OniShiroa] at [2007-10-2 20:31:16]

thanks, but I think that will give me the ip of the client who sent the request, and that's not what I want.Anyway your tip sent me in the right direction, I think request.getLocalAddr() does what I need.Message was edited by: OniShiro
Yes, that would get you the ip of the browser machine. Dint read your post fully.
I dont know if you can programatically read the ip of the machine on which your server's running. You'll have to set up your own property file where you go in and provide the system ip before starting the server on the machine. A program can then read in this value. This makes the process configurable.
ram.