Help for WAN

3 posts / 0 new
Last post
Offline
Last seen: 6 years 9 months ago
Joined: 02/01/2017
Posts: 2
Help for WAN

Hi everyone,

I tried to communicate Publisher and Subscriber via internet. So want to use WAN but its don't work. 

I use below XML file:

<transport_builtin>
<mask>MASK_NONE</mask>
</transport_builtin>

<discovery>

<initial_peers>
<!-- -->
<!-- CHANGE THIS TO THE MACHINE YOU WANT TO CONTACT -->
<!-- NOTE: Both the IP address and port MUST MATCH -->
<!-- the public address used by the other -->
<!-- configuration -->
<!-- -->
<element>tcpv4_wan://subscriber_static_IP:8500</element>
</initial_peers>
</discovery>
<property>
<value>
<element>
<name>dds.transport.load_plugins</name>
<value>dds.transport.TCPv4.tcp1</value>
</element>
<element>
<name>dds.transport.TCPv4.tcp1.library</name>
<value>nddstransporttcp</value>
</element>
<element>
<name>dds.transport.TCPv4.tcp1.create_function</name>
<value>NDDS_Transport_TCPv4_create</value>
</element>
<element>
<name>dds.transport.TCPv4.tcp1.parent.classid</name>
<value>NDDS_TRANSPORT_CLASSID_TCPV4_WAN</value>
</element>
<!-- CHANGE THIS TO THE PUBLIC ADDRESS OF YOUR -->
<!-- LOCAL MACHINE. YOU WILL HAVE TO FORWARD A -->
<!-- PORT THROUGH YOUR FIREWALL/ROUTER TO MAP -->
<!-- FROM THIS PUBLIC PORT TO LOCAL PORT 9400
-->
<element>
<name>dds.transport.TCPv4.tcp1.public_address</name>
<value>subscriber_static_IP:8500</value>
</element>
<!-- Change this to the local port you -->
<!-- configure in your router/firewall -->
<element>
<name>dds.transport.TCPv4.tcp1.server_bind_port</name>
<value>9400</value>
</element>
</value>
</property>

 

Is anything wrong or am I miss something? 

Gerardo Pardo's picture
Offline
Last seen: 3 weeks 5 days ago
Joined: 06/02/2010
Posts: 601

Can you describe your system/network a bit more?

How many machines are yoy trying to communicate with each other? Is it just 2 or is it more?

Lets assume you are talking about 2 computers and call then A, and B.

What do you mean by "communicate via Internet"? You mean both A and B have public IP addresses visible on a WAN? Or do you mean one of them has and the other does not?

Do you have any firewalls/NATs protecting A or B? If so are you setting up port-forwarding rules in the NATs/Firewalls?

If you take a look to Part 8 of the Connext DDS User's Manual, can you relate your use-case to the scenarios described there?

The XML configuration will depend on the deployment scenario. What you posted seems a bit odd in that appears to configure both a "client" configuration and a "server" configuration. Normally this would be two different Qos where one side uses the client configuration and the other the server. You could also have "symmetric" configuration but this is found less frequently.

Regarding the server side configuration it is announcing an external address with IP subscriber_static_IP  and port 8500.  Then the application is listening to port 9400.  

As indicated in the XML comments this requires a some setup where the Firewall/Router has a forwarding rule so that incoming port 8500 is mapped to the listen port 9400. Are you doing that? Also the subscriber_static_IP  would need to be something that can be resolved from the client machine. That does not look like a WAN reachable name... Can your client machine "ping" subscriber_static_IP 

Gerardo

 

Offline
Last seen: 6 years 9 months ago
Joined: 02/01/2017
Posts: 2

Actually I want to communicate Publisher and subscriber on different network and different location like one computer in my office and the other one located in my home and I want to communicate these two PCs via DDS on WAN. You can find my scenario in attachment;

How can I do that?

File Attachments: