'Create a variable to hold your IP address.
Dim ipAddress As String = ""
'Retrieve the user's ip address from Page_Load():
ipAddress = Request.ServerVariables("REMOTE_ADDR")
'Then compare the retrieved IP address to the subnet for your network which is usually "192.168.0" or whatever it is. You can find out from your network admins.
If ipAddress.Contains("192.168.0") Then
Response.Write("an internal user ")
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.