Am I doing something wrong in trying to receive TCP message over network? #975
-
I am current trying to use eCAL as middleware to stream image topics over network, between two computers (Ethernet cable). As instructed by the documentation here https://eclipse-ecal.github.io/ecal/advanced/layers/tcp.html?highlight=tcp , I have setup
I am able creating a publisher on machine A, and machine A could receive message properlly on A itself. However something strange is on Machine B:
Am I doing anything wrong / missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I also tried the stock sample. On machine A
Also on Machine A:
But on Machine B, |
Beta Was this translation helpful? Give feedback.
-
I can catch some warning on eCAL Mon
Then I dig further to this link https://eclipse-ecal.github.io/ecal/getting_started/services.html?highlight=hostname#hostname-resolution I have to add the hostname to /etc/hosts. And now things seem to work. Do I really have to manually configure |
Beta Was this translation helpful? Give feedback.
-
Hi @chengguizi, Glad to see you already figured out a solution. So yes: You have to add a Hostname <-> IP mapping in your eCAL uses Hostnames to address remote machines. It does that for UDP and TCP. But for UDP, eCAL uses multicast and therefore doesn't need to know the IP address of the remote host. TCP on the other hand is a point-to-point connection, which requires the IP Adress to be resolvable. Kind Regards |
Beta Was this translation helpful? Give feedback.
Hi @chengguizi,
Glad to see you already figured out a solution.
So yes: You have to add a Hostname <-> IP mapping in your
/etc/hosts
file. Or more precisely: you have to provide that mapping to your operating system in any manner possible. If you were on 2 Windows machines, that mapping would happen automatically by Windows. But Linux just doesn't do that.https://eclipse-ecal.github.io/ecal/getting_started/services.html#hostname-resolution
eCAL uses Hostnames to address remote machines. It does that for UDP and TCP. But for UDP, eCAL uses multicast and therefore doesn't need to know the IP address of the remote host. TCP on the other hand is a point-to-point connection, which requires th…