Skip to content

Am I doing something wrong in trying to receive TCP message over network? #975

Answered by FlorianReimold
chengguizi asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by chengguizi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants