i am converting .net web service to java web service in which the code as follows :
String Strresp=dataprocessing.Sav开发者_运维技巧eToDB(argdata,this.Context.Request.UserHostAddress);
how to call User Host Address in java can any one tell me.
From the HttpServletRequest
you can use this method
getRemoteHost()
to get the IP address of the user.
精彩评论