Servlet IP Address and Port
Posted on 2001-06-26
I have a servlet running on a host at a specific port number. In the servlet, I have to generate an xml file, where I need to put the URL of the server for DOCTYPE declaration(DTD). So I would like to get the server ip address and port number. How do I get it inside the servlet?