Giter Club home page Giter Club logo

Comments (4)

barneygale avatar barneygale commented on September 28, 2024

Pushed a potential fix for this in 3558bf0, could you give it a try?

from mcrcon.

MaxValue avatar MaxValue commented on September 28, 2024

I compared the 2 versions and interestingly they both throw the same Exception now. Not this one, but a different one:

old:

Traceback (most recent call last):
  File "demo.py", line 39, in <module>
    main(host, port, password)
  File "demo.py", line 13, in main
    rcon.connect(host, port)
  File "C:\Data\username\Data\MCRcon-master\old\mcrcon.py", line 14, in connect
    self.socket.connect((host, port))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Traceback (most recent call last):
  File "demo.py", line 39, in <module>
    main(host, port, password)
  File "demo.py", line 13, in main
    rcon.connect(host, port)
  File "C:\Data\username\Data\MCRcon-master\old\mcrcon.py", line 14, in connect
    self.socket.connect((host, port))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

new:

Traceback (most recent call last):
  File "demo.py", line 39, in <module>
    main(host, port, password)
  File "demo.py", line 13, in main
    rcon.connect(host, port)
  File "C:\Data\username\Data\MCRcon-master\new\mcrcon.py", line 14, in connect
    self.socket.connect((host, port))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

This time the targeted server is not up, therefore maybe the error.
Last time i haven't added the port forwarding rule for 25575 yet. Could be that the router answered something which resulted in the very first error.
I will see to test again with the same environment settings.

from mcrcon.

barneygale avatar barneygale commented on September 28, 2024

If the server's not up then yeah, socket.connect will throw an error.

from mcrcon.

barneygale avatar barneygale commented on September 28, 2024

I think the original problem is now fixed; if you run into any more trouble please log another issue! Thanks.

from mcrcon.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.