Skip to content

Error: cannot connect to /root port; port port_name failed to activate (invalid address) #2522

Discussion options

You must be logged in to vote

Hello. The /root port refers to the YARP name server in the default namespace. Please make sure you have started it, e.g. via yarp server, before running your application. It might require you to add the --write option. I have tested your code with YARP server down and got the exact same error. Once you start it and run the application again, you should see:

[INFO] |yarp.os.Port| Port /examples/port/sender active at tcp://192.168.1.53:10003/
[INFO] |yarp.os.Network| Waiting for /examples/port/sender->/examples/port/receiver...

You can also check the availability of the name server in C++ code via yarp::os::Network::checkNetwork().

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by drdanz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2521 on March 18, 2021 17:54.