如果是 client(客戶端) 的 IP,那么可以用 Request.ServerVariables[ "REMOTE_ADDR" ] 來取得。如果是 server(服務端) 的 IP,那么可以用 Request.ServerVariables[ "LOCAL_ADDR" ] 來取得。
西部e網(www.wsalc.com)
對了, 請不要用 http://localhost/xxx/xxx.aspx 的方式來瀏覽,因為 localhost 在 hosts table 里的 IP 預設就是 127.0.0.1,看到的結果會不正確。
