# Connect Node

## **Node Connection**

The method to connect through the locally installed `gwemix` RPC web server is as follows.

```
gwemix attach rpc:http://localhost:8588
```

The method to connect through the locally installed `gwemix` IPC file is as follows.

```
gwemix attach {data_folder}/gwemix.ipc
```

Downloading and unzipping the binary {data\_folder}, the shell script file called `gwemix.sh` is located under the bin directory. The method to connect to a node through an IPC file using `gwemix.sh` is as follows.

```
{data_folder}/bin/gwemix.sh console
```

## **Node Settings**

When using `gwemix.sh`, it is possible to set node execution options in advance by creating a file called `.rc` in {data\_folder}.

```
PORT=8588
DISCOVER=1        # 1 for enable discovery mode, 0 for disable discovery mode
TESTNET=1         # 1 for Testnet or remove this line for Mainnet
SYNC_MODE=full
GWEMIX_OPTS="--rpc.allow-unprotected-txs"
```

Set up as above and run `gwemix`, `gwemix`will run with the following run line options.

```
gwemix --http.port 8588 --wemix-testnet --syncmode full --rpc.allow-unprotected-txs 
```


---

# 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://docs.wemix.com/en/quick-start/connect-node.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.
