ServerSync

ServerSync

48.5k Downloads

Immediate failure to connect

HarrisFauntleroy opened this issue ยท 7 comments

commented

I set up a test server to try this out, got the Minecraft port and the server sync working port both port fowarded, button was set up with your config examples. Screen immediately goes to "Closing connections 99%" and freezes.

Do I need to set some additional firewall exceptions or something? It is late here so apologies if this is an obvious user error issue.

capture

commented

So the error you're getting is "Connection refused: connect"

Assuming the ip address is right and the port is correct, it is likely that you need to add an exception for the port in your firewall.

Somewhere between your client and the server something is blocking the connection.

Here are some suggestions

  • Is both the server and the client on the same network?
    • If so you probably need to use the internal ip and not the external one.
    • If not, make sure you're using the external ip and both the client and server are on the same port
  • Try disabling all anti-virus and firewalls to see if it works. If it does we'll have to figure out how to add the appropriate exceptions

Can you put your entire log in pastebin and repost?

In terms of my code, I still have a bug where it doesn't timeout. I know exactly which line it's breaking on:

socket.close();

And for some reason if the socket never connected, then it won't timeout when it tries to close this socket that was never opened.

commented

Server is on the network on a different port, fixed my port foward/firewall exceptions and made progress.

Using the internal or the external IP now give me the same thing, it says "Finished, working 100%" and times out a few seconds later.

captur2e
capture

Could it be related to the fact there are two different ports in that second picture? or is 50867 just the port I am connecting from? Because I've only allowed the default ServerSync port

Here's the full client log when this happens - http://pastebin.com/gdbzywga Ip addresses omitted

Full server log when this happens - http://pastebin.com/13ZTuR0v

commented

^-- Everyone let that be an example on how to ask for help.

But one more thing, Can I see your serversync.cfg?

commented
commented

The first thing I notice is that you're using the newest version. So that's good :)

Second thing I noticed you blanked out your ip. If you are on the same network as your computer make sure it's the internal IP address. not your external ip.

Are you using something other than vanilla? Could this be related to issue #7 ?

Can you connect to your server by only removing my mod? Because based on the logs, it seems my mod is working very well.

commented

Okay, user error, i'm an idiot. When I made a new directory to test this out safely I didn't copy the server.properties file, so I expected it to be running on 25566 like the server normally would, but it defaulted back to 25565 when it generated the new file.

fixed the port settings and it now works. Thanks for the help, apologies for the wild goose chase.

commented

That's really good to hear! Thank you very much for letting me know.
Feel free to suggest features or report bugs.