Free for PREMIUM members
[Webinar] Streamline your web hosting managementRegister 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
Your question, your audience. Choose who sees your identity—and your question—with question security.