I don't know whether this is a known bug or a feature, but I have encountered a problem running servlets that use the InetAddress.getLocalHost().getHostAddress() Java method to obtain the server IP address.I have a dial-up connection to the internet. If I dial up, an IP number is dynamically assigned to my machine. If I start Apache and JServ up, then the correct IP number is returned if I use the above method in a servlet.
 
If I hang up and redial in without stopping Apache, a new IP address is assigned to the machine. However, when the hetHostAddress() method is next called, possibly by a different servlet, then the old IP address is returned - somehow either Apache or Jserv has not "let go" of the old IP address. To reset the IP address in Apache I have to sto and restart Apache.
 
Is this a known issue? Thans for any help... Martin

Reply via email to