Link to home
Start Free TrialLog in
Avatar of Prasanna_Hebbar
Prasanna_Hebbar

asked on

Servlet IP Address and Port

Hi,

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?

Thanks,
Prasanna
ASKER CERTIFIED SOLUTION
Avatar of rkenworthy
rkenworthy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Prasanna_Hebbar
Prasanna_Hebbar

ASKER

Thanks Rob.