How can I get the IP address of my
servlets' server?
I am wanting it so my client call
http://myIpAddress/myServletContext/myServlet instead of
http://myDomain.com/myServletContext/myServlet In my processRequest method, I've tried:
but when I try to connect to the servlet replacing myDomain.com with the IP address from the code, I get a code 404. The online IP address finders give the same incorrect IP. How can I solve?
Cheers,
James