# 15.1.1. Configuring Initial Peers¶

A complete description of the initial peers list and its configuration can be found in Initial peers. For convenience, this example shows how to configure an initial peers list with one peer on host 192.168.10.13 with participant ID 1 in domain 0.

Note

Note that the port number used here is not arbitrary, as discovery ports are defined by the RTPS v2.2 standard. Refer to Well Known Ports to learn about these standard port numbers.

 C++ DomainParticipantQos qos; // configure an initial peer on host 192.168.10.13. // The port number corresponds to the well-known port for metatraffic unicast // on participant ID 1 and domain 0. Locator_t initial_peer; IPLocator::setIPv4(initial_peer, "192.168.10.13"); initial_peer.port = 7412; qos.wire_protocol().builtin.initialPeersList.push_back(initial_peer);  XML 
192.168.10.13
7412