Need to edge out the competition for your dream job? Train for certifications today.
'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
This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.