Page 1 of 1

Clients Take Over Server Machine's Keyboard

PostPosted: Mon Aug 15, 2016 21:57
by AntumDeluge
This is a really strange bug to me, & I don't know if I can explain it well.

On my local network I have set up a Minetest 0.4.14 server. Whenever a client from another machine connects to it all keypresses are executed on the server machine. So, for example, if I am browsing the internet on the server machine while someone is connected from another client, i start to see "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww" being printed in my browser from the client walking with the "w" key. Just a little while ago someone logged in & I could see their username & password being printed on my screen. The Minetest server seems to take over my keyboard, allowing clients to control it.

It's a real problem because my server machine is also my main computer. I set up the server a couple weeks ago, but the problem has only been occurring the past day or two. I have been installing (& de-installing) mods. But I don't know if I could figure out which might be related. I'll get together a list of the ones currently installed. I didn't notice it directly after a mod (de-)install. I had been in game for a while & I don't remember how long the server had been up.

Re: Clients Take Over Server Machine's Keyboard

PostPosted: Mon Aug 15, 2016 21:58
by rubenwardy
Is the client on the same computer? What operating system? Are you running a dedicated server?

PostPosted: Wed Aug 17, 2016 08:20
by Hybrid Dog
AntumDeluge wrote:Just a little while ago someone logged in & I could see their username & password being printed on my screen.

When someone writes the name and password in the menu, he/she isn't connected to the minetest server yet.

Re:

PostPosted: Thu Aug 18, 2016 05:48
by AntumDeluge
rebenwardy wrote:Is the client on the same computer?


The clients are on separate machines.

rubenwardy wrote:What operating system?


I am sorry that I forgot to post my machine's information. I am running Linux Mint with the Cinnamon desktop:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ uname -srm
Linux 4.4.0-34-generic x86_64


rubenwardy wrote:Are you running a dedicated server?


If I understand the question right, no. I use the server's machine for other purposes.

Hybrid Dog wrote:When someone writes the name and password in the menu, he/she isn't connected to the minetest server yet.


There seems to be some kind of leak in my network where keypresses are being passed to my IP. Possibly exposed by the server? Tonight some text was printed on the running server's terminal from a machine that wasn't even running the client. I think maybe I will change ports to see if that fixes the problem, though no idea if it is related.

Currently, the server is running, but there is no activity going on on any of the client computers, and I am having no issues. Tomorrow I will try to find a time with the clients are being used without the server running to see if I have any issues.

Why would the clients be passing keypresses through the forwarded ports?

Re: Clients Take Over Server Machine's Keyboard

PostPosted: Thu Aug 18, 2016 11:19
by rubenwardy
A dedicated server is one that doesn't have a GUI. It's running from a terminal using minetest --server or minetestserver

Re: Clients Take Over Server Machine's Keyboard

PostPosted: Sat Aug 20, 2016 18:31
by AntumDeluge
Oh, yes, I'm sorry. I am running a dedicated server.

Today I have been running it without the interactive terminal (--terminal option) & so far I have not noticed any problems.