开发者

how to request UserHostAddress?

开发者 https://www.devze.com 2023-02-08 00:49 出处:网络
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);

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

精彩评论

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