主权项 |
1. A method comprising:
obtaining, using a computing device, a network address assigned to the computing device; checking, using the computing device, one or both of whether the network address is within a desired range of network addresses and whether a resource access manager for a particular network can be accessed, the checking further comprising:
causing a request to be sent to the resource access manager, wherein the request is an unencrypted request regardless of whether the computing device is inside the particular network or outside the particular network, and wherein the unencrypted request is an unencrypted request to a domain name system (DNS) or a lightweight directory access protocol (LDAP) port of the resource access manager, and other requests sent to other ports of the resource access manager are encrypted requests;checking whether a response to the request is received from the resource access manager; anddetermining that the resource access manager can be accessed if the response to the request is received from the resource access manager, otherwise determining that the resource access manager cannot be accessed; determining that the computing device is inside the particular network if both the network address is within the desired range of network addresses and the resource access manager can be accessed, otherwise determining that the computing device is outside the particular network; and repeating the obtaining, the checking, and the determining at particular intervals. |