ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'll answer your question to best of my ability.

  1. From this answer on superuser, you should stick with localhost:
  • 127.0.0.1 is the loopback address (also known as localhost).
  • 0.0.0.0 is a non-routable meta-address used to designate an invalid, unknown or non applicable target (a no particular address placeholder).

I'll answer your question to best of my ability.

  • 127.0.0.1 is the loopback address (also known as localhost).
  • 0.0.0.0 is a non-routable meta-address used to designate an invalid, unknown or non applicable target (a no particular address placeholder).

I'll answer your question to best of my ability.

  • 127.0.0.1 is the loopback address (also known as localhost).
  • 0.0.0.0 is a non-routable meta-address used to designate an invalid, unknown or non applicable target (a no particular address placeholder).

As for the bottom line, it's a matter of preference as to which to use. I prefer ROS_HOSTNAME because I can use it in launch files in the <machine> tag and it's easier to remember hostnames vs. IP addresses.