wpilibsuite / ntcore

NetworkTables Core Library (ARCHIVED, merged into allwpilib)
Other
39 stars 28 forks source link

NT: ERROR: could not resolve address(TCPConnectorr) #186

Closed balloman closed 7 years ago

balloman commented 7 years ago

I keep getting this error when using the SetTeam function, how do I fix it?

PeterJohnson commented 7 years ago

As SetTeam() configures 4 or so addresses and round robins between them, you will nearly always get this error (really it shouldn't be an error but rather seen as informational). You can safely ignore it as long as you eventually get a CONNECTED message (which signals it has successfully connected to the server). If you see an endless loop of these errors and never get the CONNECTED message that means it can't find the server at all and you should check your network configuration, that the server is actually running, etc.

balloman commented 7 years ago

Ah, I get it in a loop. I'm not sure what's wrong our team has been working for days to figure out why we can't connect to the robot.

balloman commented 7 years ago

Every time I get a time out error

PeterJohnson commented 7 years ago

This can be due to a lot of different reasons. Some things to check:

balloman commented 7 years ago

Yes

No

Yes

PeterJohnson commented 7 years ago

Can you open a command window and successfully ping "roborio-xxx-frc.local" or "roborio-xxx-frc.lan" (where xxx is your team number)? Are you connected via Ethernet or USB?

balloman commented 7 years ago

Connected wirelessly, if I ping it I get a response back at 10.0.34.1(team 34) and a message saying port unreachable

PeterJohnson commented 7 years ago

The DS and the NetworkTables application are running on the same computer, right?

balloman commented 7 years ago

Yes

PeterJohnson commented 7 years ago

If you restart the DS application can it still connect? Which address resolved, the .local address or the .lan address? (should show up as "Pinging roborio-xxx-frc.local [10.0.34.xxx]"). Can you ping 10.0.34.2 successfully?

PeterJohnson commented 7 years ago

Do you ever see the message "client: DS overriding server IP to xxxx"? If so, what is xxxx? If you have PuTTY, can you try opening a raw connection to localhost port 1742 and see what it prints?

PeterJohnson commented 7 years ago

What is your Driver Station version number?

balloman commented 7 years ago

If I ping 10.0.34.2 I get one reply from 10.0.34.138 with Destination host unreachable, and the remaining three is a reply from 10.0.34.1 with destination port unreachable

  1. I did not see that message
  2. I can still restart the ds and have it connect.
  3. If i try to connect to either the robot or the local host i get connection refused.
  4. 17.0a11
PeterJohnson commented 7 years ago

I really don't know what's going on. If you have DS 17.0a11 running on your local computer, and run PuTTY, select connection type "Raw", port "1742", and host "localhost", you should definitely get a connection and some text back.