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

Socket Timeout #69

Closed
Carlipoot opened this issue Jul 17, 2019 · 1 comment
Closed

Socket Timeout #69

Carlipoot opened this issue Jul 17, 2019 · 1 comment

Comments

@Carlipoot
Copy link

Hi there. I just installed mcstatus 2.2.1 on my raspberry pi using pip. I can successfully run ping and status on my Minecraft Server (1.14.3) with results. When I run query I get a socket timeout. Below is there error.

$ mcstatus 192.168.1.150 query Traceback (most recent call last):   File "/usr/local/bin/mcstatus", line 11, in <module>     sys.exit(cli())   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__     return self.main(*args, **kwargs)   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main     rv = self.invoke(ctx)   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke     return _process_result(sub_ctx.command.invoke(sub_ctx))   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke     return ctx.invoke(self.callback, **ctx.params)   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke     return callback(*args, **kwargs)   File "/usr/local/lib/python2.7/dist-packages/mcstatus/scripts/mcstatus.py", line 79, in query     response = server.query()   File "/usr/local/lib/python2.7/dist-packages/mcstatus/server.py", line 82, in query     raise exception socket.timeout: timed out

@Carlipoot
Copy link
Author

Ok, so I figured it out... the mcstatus query command uses UDP, which was disabled on my server's inbound firewall rule. I added a new rule to allow it and now it works. Mystery solved!

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

No branches or pull requests

1 participant