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

TCP server connection refused #6054

Closed
Muleck opened this issue Apr 27, 2023 · 5 comments
Closed

TCP server connection refused #6054

Muleck opened this issue Apr 27, 2023 · 5 comments

Comments

@Muleck
Copy link

Muleck commented Apr 27, 2023

Operating System

Android

DevilutionX version

1.4.1 (latest release)

Describe

Host on the ip with one android, then when i try to join with the another device it said "connect: connection refused"

To Reproduce

1.Host the tpc server on the device
2. join on the server with another device

Expected Behavior

No response

Additional context

No response

@DakkJaniels
Copy link
Contributor

Works fine for me. Sounds like it's a problem with your phone, or maybe you have the wrong IP address.

@Muleck
Copy link
Author

Muleck commented Apr 27, 2023 via email

@DakkJaniels
Copy link
Contributor

Is there a reason you need to use TCP vs. using ZeroTier? Also hosting TCP games on phone is not recommended. Without more information, this sounds more like an issue coming from outside the program.

@Muleck
Copy link
Author

Muleck commented Apr 27, 2023

Yes, the reason is only TCP works, sometimes at least 50-50%.
Zerotier not working on the same wifi for me, when i join the game crash.

@StephenCWills
Copy link
Member

I ran a test hosting on Android and joining with a Windows 10 PC. I had 5/5 public TCP games successfully joined and 5/5 TCP games with passwords successfully joined. That's ten trials with a 100% success rate.

"Connection refused" occurs when the device that is connecting receives an RST packet from the remote system. This typically occurs when the remote system is not listening on the port that the client is attempting to connect to. It could also mean that you reached the wrong device on your network, like if you have an ambiguous network path, a firewall that refuses connections, or entered the wrong IP.

Also note that when you create a game, the game client hosts a TCP server for relaying packets between players, but also connects locally to its own TCP server as a TCP client to act as a remote player. If the phone were not listening on the port at all, game creation would have failed. It feels to me as if it's more likely that this is an issue with the network than with the Android device itself.

Since we're unable to reproduce, I'm going to assume there is nothing to be fixed in DevilutionX and close this issue. If you need guidance, feel free to share more information in this thread and maybe someone here can help point you in the right direction.

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

No branches or pull requests

4 participants