JavaScript本身不行,不过你可以通过ASP传递给JavaScript
<Script>
ip="<%=Request.ServerVariables("LOCAL_ADDR")%>"
alert(ip)
</Script>