# cortexaccess tool

This command line tool is available only for Raspberry Pi to manage permissions for remote connections via IP addresses of remote desktop machines.

This tool is installed on Raspberry Pi device along with Cortex installation. It is located at `/usr/local/emotivapps/bin/cortexaccess`.

## List all granted IP addresses

List all IP addresses of remote desktop machines from which applications are allowed to create web socket connections to Cortex on Raspberry Pi device.

Command: `cortexaccess ip list`

If the IP address of your remote desktop isn't in the list, you should add it using `accept` command.

## Add an IP address

Grant permissions a remote desktop machine (via its IP address) from which applications can create web socket connections to Cortex on Raspberry Pi device.

Command: `cortexaccess ip accept  <an-ip-address>`&#x20;

## Remove an IP address

Remove permissions of remote desktop machines (via its IP address) so that applications on that machine cannot create web socket connections to Cortex on Raspberry Pi device anymore.

Command: `cortexaccess ip deny  <an-ip-address>`

## Clear all IP addresses

Remove permissions of current granted remote desktop machines so that applications on these machines cannot create web socket connections to Cortex on Raspberry Pi device anymore.

Command: `cortexaccess ip clear`

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emotiv.gitbook.io/cortex-api/cortexaccess-tool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
