<%=server.variables("remote_host")%>

解决方案 »

  1.   

    用js取不会,用asp如下:...... 
    userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") 
    If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR") 
    ...... 
      

  2.   

    可以得到如下信息但没有计算机名:
    window.clientInformation.appCodeName  Retrieves the code name of the browser. appMinorVersion  Retrieves the application's minor version value. appName  Retrieves the name of the browser. appVersion  Retrieves the platform and version of the browser. browserLanguage  Retrieves the current browser language. cookieEnabled  Retrieves whether client-side cookies are enabled in the browser. cpuClass  Retrieves a string denoting the CPU class. javaEnabled  Returns whether Java is enabled. onLine  Retrieves whether the system is in global offline mode. platform  Retrieves the name of the user's operating system. plugins  Retrieves a collection of all EMBED objects within the document. systemLanguage  Retrieves the default language used by the system. taintEnabled  Returns whether data tainting is enabled. userAgent  Retrieves a string equivalent to the HTTP user-agent request header. userLanguage  Retrieves the current user language. userProfile  Provides methods that allow a script to request read access to and perform read actions on a user's profile information.