# Connect Node

## 노드 연결 <a href="#node-connection" id="node-connection"></a>

로컬에 설치한 `gwemix` RPC 웹서버를 통해서 연결하는 방법은 아래와 같습니다.

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

로컬에 설치한 `gwemix` IPC 파일을 통해서 연결하는 방법은 다음과 같습니다.

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

바이너리를 다운로드 받아서 {data\_folder}에서 압축을 풀면 bin 디렉토리 아래 `gwemix.sh`라는 쉘스크립트파일을 찾을 수 있습니다. `gwemix.sh`를 이용하여 IPC 파일을 통해서 노드에 연결하는 방법은 다음과 같습니다.

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

## 노드 설정 <a href="#node-settings" id="node-settings"></a>

`gwemix.sh`를 사용할 경우 {data\_folder}에 `.rc`라는 파일을 생성하여 노드 실행 옵션을 미리 설정하는 것이 가능합니다.&#x20;

```
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"
```

위와 같이 설정하고 `gwemix`를 실행하면 `gwemix` 는 아래와 같은 실행줄 옵션을 가지고 실행되게 됩니다.

```
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/ko/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.
