GetIPAddress in Asp.net
Public Shared Function GetIPAddress() As String
Try
Return HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")
Catch generatedExceptionName As Exception
Return ""
End Try
End Function
Try
Return HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")
Catch generatedExceptionName As Exception
Return ""
End Try
End Function