communication using ROS failed
I try to set up a network between my PC and my Laptop.
PC ip:192.168.1.165
Laptop ip:192.168.1.118
PC hostname: Leon-PC
Latop hostname: Leon-Laptop
I have changed the /etc/hosts files in both computers to make sure the hostname of PC and Laptop can be recognized by the computers.
And I can ping PC successfully on my Laptop and vise versa.
Then I change the both files ~/.bashrc in two computers.
In the PC, I set ROS_HOSTNAME=leon-PC
and ROS_MASTER_URI=https://leon-PC:11311
In the Laptop, I set ROS_HOSTNAME=leon-PC
and ROS_MASTER_URI=https://leon-PC:11311
The setting used to be working in a good condition and I can run roscore on PC when running other nodes in Laptop and the messages can be received by two computers. But days later, I turn on the same setting and someting strange happens, after running roscore and some nodes on PC, I can run rviz on my Laptop and sub to the rostopuc published by the PC, but when I run nodes in Laptop, it give out
unable to contact to my own server at [http://leon-PC:34099]
and the port 34099 changes every time I run the node, I dont konw where the bug is and whether the port matters for the rviz running successfully on my Laptop is contacting to [http:leon-PC:11311] which is exactly the string being set in the ~/.bashrc in both computers.