Could not get the examples to work #128
-
Hi, I've been attempting to set up a small server-client using renet for a Bevy game. I began by following this tutorial, and everything worked fine. However, when I tried upgrading the crates to the latest version, I encountered issues with the networking. I didn't receive any errors from renet, but the client wouldn't connect to the server. To troubleshoot, I decided to run an example of the latest version of the renet crate to ensure everything was functioning correctly. I attempted to run the example provided in the crate's readme (with added function declarations and imports), but it didn't work. Now, I'm encountering the error I verified that both the server ID and the protocol ID were consistent between the client and the server. Additionally, I tried running the client as an administrator to rule out any permission-related issues. Any suggestions on what I should do? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Can you post the code, that you copied from the README. Will be easier do see why its not working |
Beta Was this translation helpful? Give feedback.
Hey,
Can you add a
sleep
at the end of the loop, just after the send_packets:Try adding this to both client and server code