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

# Connect Node

## Connect Node <a href="#node-connection" id="node-connection"></a>

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

```
gmet attach http://localhost:8588
```

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

```
gmet attach $GMET_HOME/gmet.ipc
```

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

```
$GMET_HOME/bin/gmet.sh console
```

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

`gmet.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
GMET_OPTS="--rpc.allow-unprotected-txs"
```

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

```
gmet --http.port 8588 --meta-testnet --syncmode full --rpc.allow-unprotected-txs 
```
