In a servlet, you can obtain the IP address and port of the server by using the following methods.
1 | InetAddress iAddr = InetAddress.getLocalHost(); |
In a servlet, you can obtain the IP address and port of the server by using the following methods.
1 | InetAddress iAddr = InetAddress.getLocalHost(); |