V
V
VasyaProgrammist2021-08-26 12:28:26
linux
VasyaProgrammist, 2021-08-26 12:28:26

I can’t connect to the Minecraft UDP / TCP server via SSH, how to do it right?

The server (physical) that I connect to via SSH has a Minecraft server. I want to SSH into the server in such a way that when I start the Minecraft server remotely, I can connect to it from the Minecraft client from the whole computer, as if on a local network. Also, my computer, unlike the server, is located on the router's local network.
As you know, the Minecraft server runs on UDP / TCP protocol on port 25565. The server (to which I connect via SSH) is not mine, there is no access to changing the state of the ports. The server listens on ports 6010, 6817, 6818, 6010 on TCP. In my local network, port 25565 is open for TCP, UDP both on the local computer and on the router.
How to correctly forward ports, create a tunnel, or do something else so that the protocol transmits data to me from one of the server ports? Help me understand the situation and suggest a way to solve this problem. What is the right way to assign a task to the SSH protocol, Minecraft (Java) server, router, etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2021-08-26
@saboteur_kiev

I want to SSH into the server in such a way that when I start the Minecraft server remotely, I can connect to it from the Minecraft client from the whole computer, as if on a local network.

How will ssh make a local network for you? This makes VPN
SSH can help forward TCP ports, but you need to forward each port to the local machine and minecraft already connect to yourself.
and ssh will not forward UDP ports, because ssh itself works over TCP, you still have to pervert through some kind of fifo thread.
In general, it’s easier for you to set up a VPN

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question