How to find client computer name in javascript/jsp?

后端 未结 4 1880
闹比i
闹比i 2021-01-26 08:19

My print application has to get the client name and then print the documents. How to find this in java script or jsp? I searched here. Some are discussing on PHP and so? Somethi

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 08:32

    How to find this in java script or jsp?

    You cannot do this in a JSP, because the JSP executes on the server side. (In theory a JSP could try to determine the client IP address from the request object via the getRemoteAddr() method, but this will fail if the user's browser accesses the server via a web proxy.)

提交回复
热议问题