> For the complete documentation index, see [llms.txt](https://docs.wemix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wemix.com/ko/quick-start/connect-node.md).

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