public function runsLocally() {

		if(is_null($this->isLocal)) {
			
			$remote =
				isset($_SERVER['HTTP_CLIENT_IP']) ||
				isset($_SERVER['HTTP_X_FORWARDED_FOR']) ||
				!(
					in_array(
						@$_SERVER['REMOTE_ADDR'],
						[
							'127.0.0.1',
							'fe80::1',
							'::1'
								
						]
					) ||
					PHP_SAPI === 'cli-server'
				)
			;

			$this->isLocal = PHP_SAPI === 'cli' || !$remote;

		}		

		return $this->isLocal;

	}