提交 f5022bc4 编写于 作者: F fengzongbao 提交者: Calvin Miao

collect issue to cyber FAQ about multiple hosts communication

上级 fd450ec0
......@@ -79,5 +79,18 @@ You can refer the sample code:
- talker: https://github.com/gruminions/apollo/blob/record/cyber/examples/talker.cc
- listener: https://github.com/gruminions/apollo/blob/record/cyber/examples/listener.cc
## How to configure multiple hosts communication?
Make sure the two(or more) hosts under the same network segment of the local area network, Like `192.168.10.6` and `192.168.10.7`.
You just need to modify `CYBER_IP` of `/apollo/cyber/setup.bash`
```bash
export CYBER_IP=127.0.0.1
```
Suppose you have two hosts A and B,the ip of A is `192.168.10.6`, and the ip of B is `192.168.10.7`. Then set `CYBER_IP` to `192.168.10.6` on host A, and set `CYBER_IP` to `192.168.10.7` on host B. Now host A can communicate with host B.
---
More FAQs to follow...
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册