ADLINK-IST / opensplice

This is the Vortex OpenSplice Community Edition source repository. For our commercial offering see
https://www.adlinktech.com/en/vortex-opensplice-data-distribution-service
Apache License 2.0
259 stars 157 forks source link

Helloworld Example Subscriber not receiving data - C, Cpp #127

Closed djacob91 closed 4 years ago

djacob91 commented 4 years ago

Hi,

I was trying to run the helloworld example in linux (RHEL8). Previously i was able to run similar examples on windows. I Have successfully build the example using the make file. However the subscriber is not receiving any data. The publisher successfully publishes the message though.

image

I have tried this for both the c and cpp , but the result is same. What could be the issue here? Do i need to worry about any firewall settings or something of that sort?

Regards DJ

djacob91 commented 4 years ago

HI,

I just found out that if the firewall is turned off using the following command, the subscriber receives the message. sudo systemctl stop firewalld

image

However i would like to enable the firewall back and still be able to use opensplice dds. How to do this? Add an exception for opensplice services in firewall?

ThijsSassen commented 4 years ago

Hi @djacob91 more information about port control when using DDSI as network service can be found in section 7.3.3 of the deployment guide

djacob91 commented 4 years ago

Thank you @ThijsSassen

Solved the issue by adding/opening a couple ports in the firewall.

Here are the commands used.

# firewall-cmd --permanent --add-port 7400-7649/udp

then restart firewall using

# systemctl restart firewalld

to verify the specified ports are open, use the following.

# firewall-cmd --list-ports

Hope this helps someone like me who is a newbie to all these.

Regards DJ