Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkedMultiplayerENet client is unable to connect to a server #54725

Closed
MysteryCoder456 opened this issue Nov 7, 2021 · 5 comments
Closed
Assignees
Labels
Milestone

Comments

@MysteryCoder456
Copy link

Godot version

3.4.stable

System information

MacOS 12.0.1, Intel Iris Plus 640, GLES3

Issue description

I'm using the NetworkedMultiplayerENet class to make a multiplayer game. When I was using Godot 3.3.4, all my code was working fine. But in 3.4 it was broken. I tried running the exact same code on both 3.3.4 and 3.4.

When I run the create_client function on my NetworkedMultiplayerENet instance. It doesn't connect to the server or doesn't print anything to the Output Window or Debugger. After a while, it emits the connection_failed signal. I have checked that the server is also up and running, and have also run the code in 3.4 and 3.3.4 simultaneously.

For some reason, the 3.4 running client doesn't at all connect to my game servers. But the 3.3.4 works as expected.

Steps to reproduce

I've attached an example project to hopefully reproduce the error.

  1. Open the example project (contained in NetworkTest.zip).
  2. Change the address in the addr variable in the a.gd script to your liking.
  3. Run the project.
  4. Wait for it the either say success or fail.

Minimal reproduction project

NetworkTest.zip

@MysteryCoder456
Copy link
Author

MysteryCoder456 commented Nov 7, 2021

In case the example project doesn't correctly reproduce the error, please check out the project where I initially found the error, in the client project.

@Calinou
Copy link
Member

Calinou commented Nov 7, 2021

@MysteryCoder456 Can you reproduce this in any of the 3.4 betas and RCs to determine when the regression started?

@Faless
Copy link
Collaborator

Faless commented Nov 7, 2021 via email

@rickwillcox
Copy link

I'm using all these features fine in 3.4

@MysteryCoder456
Copy link
Author

Are you running the same Godot version on the client and server? Can this be another case of #52019

On Sun, Nov 7, 2021, 17:37 Rehatbir Singh @.***> wrote: In case the example project doesn't correctly reproduce the error, please check out the project where I initially found the error https://github.com/TopDownSurvival-Dev-Team/TopDownSurvival. — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub <#54725 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM4C3QGYGQHMI2P5S4SUH3UK2TNHANCNFSM5HQ7PLEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I updated my server to 3.4 and it works now thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants