View Single Post
Old 04-19-2005, 06:12 AM   #1 (permalink)
j.gohel
Code Monkey
 
Join Date: Apr 2005
Posts: 68
j.gohel is on a distinguished road
get IP dynamically

Hello all
I am making a chat application in which i use JSP and Servlet
Now I have provided the normal login page that is in swing that calls the servlet and does the authentication with the server against databse

Now i would only be giving the swing gui to the client in a jar
But the IP that i pass while compiling and making a jar of swing client is static

Now every time the server changes i need to recompile the class file
Taking the case of yahoo that must be having many servers but the client never needs to specify the IP

Is there any way that my client can get the IP without me having to recompile it everytime before giving it to the client

Thanks
Regards
Jignesh
j.gohel is offline   Reply With Quote