> For the complete documentation index, see [llms.txt](https://idminer.gitbook.io/robotis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://idminer.gitbook.io/robotis/part-1-turtlebot3/6.-she-ding/6.1.-remote-pc-zhuo-dian-bi-dian-de-she-ding/6.1.4-wang-lu-lian-xian-de-she-ding.md).

# 6.1.4. 網路連線的設定

網路連線的設定可在硬體都組裝好之後再進行。

![](/files/-LkbFvx7kEJ1CjH1BAs4)

ROS 需要知道 IP 位址，以便 TurtleBot3 及 remote PC 之間可以溝通。Remote PC 跟 TB3 需要在相同區段的 Wifi 網域連接。

Remote PC 端: 在 terminal 視窗輸入下方指令來找出 remote PC 的 IP 位址

```
$ ifconfig
```

下圖紅色方框內, 顯示的是 remote PC 的 IP 位址

![](/files/-LkbdciaFCqdAGnIK1Jl)

Remote PC端: 接下來輸入指令

```
$ nano ~/.bashrc
```

按 `alt+/` 來結束該行文件。

然後將檔案內的`ROS_MASTER_URI` 的`localhost` 以及   `ROS_HOSTNAME` 後面接的 IP 位址，更改為上面所得到的 remote PC(桌電/筆電) 的 IP 位址，如下圖所示。

![](/files/-LkbfaDAZW10Xvz1olJp)

Remote PC端: 更改後再輸入 source bashrc 指令

```
$ source ~/.bashrc
```
