arpruss / raspberryjammod-minetest

Raspberry Jam Mod for Minetest
Other
39 stars 22 forks source link

Cannot connect with Linux Minetest server #13

Closed abixadamj closed 1 year ago

abixadamj commented 1 year ago

I have minetest installed on my server: pawlikowska.minetest.edu.pl, port 31000 - you can try it, it is without any password, just for testing with my students in secondary School.

I have installed mod in mods directory

root@jitsi:/home/minetest/data/valley-of-death/mods# ls -la
total 16
drwxr-xr-x 4 Debian-minetest games 4096 Nov 24 10:10 .
drwxrwxr-x 6 Debian-minetest games 4096 Nov 24 12:07 ..
drwxr-xr-x 6 Debian-minetest games 4096 Jun  7 14:03 lwcomputers
drwxr-xr-x 4 Debian-minetest games 4096 Nov 24 09:16 raspberryjammod

In /etc/minetest/minetest-valley-of-death.conf file I wrote: secure.trusted_mods = raspberryjammod

I runs OK. Now I trie to connect to it using https://pypi.org/project/mcthings/ library. this is my code:

from mcthings.server import Server

MC_SEVER_HOST = "pawlikowska.minetest.edu.pl"
MC_SEVER_PORT = 31000

server = Server(MC_SEVER_HOST, MC_SEVER_PORT)

server.mc.postToChat("Building a Scene for 0.10 release")

Now error:


  File "/home/adasiek/PycharmProjects/mcpi_minetest/venv/lib/python3.10/site-packages/mcpi/minecraft.py", line 376, in create
    return Minecraft(Connection(address, port))
  File "/home/adasiek/PycharmProjects/mcpi_minetest/venv/lib/python3.10/site-packages/mcpi/connection.py", line 17, in __init__
    self.socket.connect((address, port))
ConnectionRefusedError: [Errno 111] Connection refused

Process finished with exit code 1

Any idea, what am I doing wrong?

abixadamj commented 1 year ago

After deep investigation, the solution is:

MC_SERVER_port = 4711