Shell-Company / go-scout

go-scout is a tool that allows you to control a Moorebot Scout robot from your computer (without using the mobile app). The robot is controlled using an XBOX controller, and video is displayed in a new window.
26 stars 5 forks source link

Can't connect to robot on a different different network. #9

Open KProgammer opened 1 year ago

KProgammer commented 1 year ago

I downloaded the branch so that I could control the robot from a different wifi network than the one my computer is connected to, but I've only been getting the error: Starting go-scout controller for Moorebot Scout ROS endpoint: 192..168.1.224:11311 panic: Post "http://192.168.1.224:11311/RPC2": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

It works fine when they are on the same wifi network, but as soon as I try it on a different one, I get the error above. Any help on trouble shooting this would be great. Thanks!

PaskoMoto commented 1 year ago

Hi.

I got the same message even connecting to the robot from within the same network. Fixed it by adding a new entry to my hosts file:

IP_ADDRESS_of_ROBOT linaro-alip

and also using the '-l' command line option. Best Regards.

KProgammer commented 1 year ago

Thanks so much for getting back to this comment! I'm afraid I am still having trouble. You have a hosts file? Where would I find that? I tried running the command "IP_ADDRESS_of_ROBOT linaro-alip" however none of my terminals (Git_Bash, Linux subsystem, and the default command line) recognized it. The -l command line option seemed to help, but I got the error "panic: listen tcp IP_ADDRESS_of_ROBOT: bind: The requested address is not valid in its context."

PaskoMoto commented 1 year ago

Hi.

Sorry, my suggestion was not a command you can type. :wink: If you are using a Linux operating system you should add a line in your file "/etc/hosts", and that line sould be like: ....... 192.168.1.57 linaro-alip ....... Where '192.168.1.57' is the actual IP address of your robot. You may find it in the app, on your router or in the commanda line you used to start 'go-scout'. (After the '-h' command option).

Best Regards.