Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

[Errno 111] Connection refused #48

Closed AndrewB6 closed 8 years ago

AndrewB6 commented 8 years ago

I get this error after installing it with pip and trying to run "test.py" which is a copy of the usage code.

Traceback (most recent call last): File "test.py", line 7, in status = server.status() File "/home/urbanmc/.local/lib/python2.7/site-packages/mcstatus/server.py", line 49, in status connection = TCPSocketConnection((self.host, self.port)) File "/home/urbanmc/.local/lib/python2.7/site-packages/mcstatus/protocol/connection.py", line 129, in init self.socket = socket.create_connection(addr, timeout=timeout) File "/usr/lib/python2.7/socket.py", line 575, in create_connection raise err socket.error: [Errno 111] Connection refused

AndrewB6 commented 8 years ago

Never mind, had wrong IP address entered.