C# 클래스 System.Web.Mvc.Html.NetworkHelper

파일 보기 프로젝트 열기: drorgl/MSDNSWebAdmin

공개 메소드들

메소드 설명
ClientIPAddress ( System.Web.HttpContextBase context ) : string

Retrieves the Client IP or IPs if the proxy messed things up Taken from http://stackoverflow.com/questions/2577496/how-can-i-get-the-clients-ip-address-in-asp-net-mvc

GetFirstIp ( string computerName ) : string
GetReverseDNS ( string ip, int timeout ) : string

Reverse DNS Lookup

메소드 상세

ClientIPAddress() 공개 정적인 메소드

Retrieves the Client IP or IPs if the proxy messed things up Taken from http://stackoverflow.com/questions/2577496/how-can-i-get-the-clients-ip-address-in-asp-net-mvc
public static ClientIPAddress ( System.Web.HttpContextBase context ) : string
context System.Web.HttpContextBase HttpContext.Current
리턴 string

GetFirstIp() 공개 정적인 메소드

public static GetFirstIp ( string computerName ) : string
computerName string
리턴 string

GetReverseDNS() 공개 정적인 메소드

Reverse DNS Lookup
public static GetReverseDNS ( string ip, int timeout ) : string
ip string ip address
timeout int timeout in milliseconds
리턴 string