@1064044092 在 roscore运行报错 中说:
2023年3月9日 17:24
RLException: Unable to contact my own server at
Thank you for answering the question!
For the problem that I confront, I solve it this way
After installing Ros noetics, when I was running commend "roscore" I got this issue
RLException: Unable to contact my own server at [http://192.168.123.20:46397/].
This usually means that the network is not configured properly.
A common cause is that the machine cannot connect to itself. Please check
for errors by running:
ping 192.168.123.20
For more tips, please see
http://wiki.ros.org/ROS/NetworkSetup
The traceback for the exception was written to the log file
and solve it in this way
Change your ROS_MASTER_URI and ROS_HOSTNAME in ~/.bashrc and delete POS_IP which is related to IP 192.168.123.20
export ROS_MASTER_URI=http://robot.local:11311
export ROS_HOSTNAME=localhost
export ROS_IP='hostname -I'
for other version of ros maybe will work with following ROS_HOSTNAME
export ROS_HOSTNAME=robot.local
Don't forget source ~/.bashrc
For additional info can refer to following link
https://blog.csdn.net/Will_Ye/article/details/119912488