This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If you are not using servlets of JSP's and you are working with your own server written in java. The information you get from your socket object that is returned from your ServerSocket object Accept() method contains information about the remote host . You have to call socket object getInetAddress() method to get the ip address. If you are using Servlets or JSP's then call getRemoteHost() method on HttpServletRequest object that your servlet/JSP container providing u .
"Hain aur bhee duniya mein sukhanwar bahut acche.<br />Kehte hein ke Galib ka hai andaz-e-bayaan aur."