ROS_MASTER_URI address keep changing every time roscore is run
Once in a while, when I run roscore from terminal, it can not connect to its server:
RLException: Unable to contact my own server at [http://192.168.1.123:34759/]. This usually means that the network is not configured properly.
This last part of ROS_MASTER_URI which is 34759 keeps changing when I run roscore multiple times. My bashrc file includes the following at the end:
source /opt/ros/melodic/setup.bash export ROS_MASTER_URI=http://192.168.1.123:11311 export ROS_IP=192.168.1.123
I am a beginner in ROS. I would appreciate your response. Thanks