开发者

how to request UserHostAddress?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜