roscore not launching due to weird Computer Name
I've installed ROS Indigo (not built from source). Everything seems to have installed perfectly and the first 4 tutorials work well too. However, when I launch roscore, it doesn't launch, and it shows the following error.
Unable to contact my own server at [http://1103:33101/]. This usually means that the network is not configured properly.
A common cause is that the machine cannot ping itself. Please check for errors by running:
ping 1103
For more tips, please see
http://www.ros.org/wiki/ROS/NetworkSetup
The traceback for the exception was written to the log file
I've sort of found what the problem is after some speculation.
My computer name is 1103 and user name is desktop (desktop@1103). So, when roscore tries to resolve the hostname "1103", it ends up resolving it to 0.0.4.79 (Verified this on some other hostname resolvers as well!).
Also, here's what "roswtf" outputs: Local network configuration is invalid: Local hostname [1103] resolves to [0.0.4.79], which does not appear to be a local IP address ['127.0.0.1', '172.18.4.40'].